.class public Lcom/netease/mobileanalysis/MobileAgent;
.super Ljava/lang/Object;
.source "MobileAgent.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/netease/mobileanalysis/MobileAgent$ReportMessageHandler;
    }
.end annotation


# static fields
.field private static final FEEDBACK_URL:Ljava/lang/String; = "http://m.analytics.126.net/fb/feedback"

.field private static final LOG_TAG:Ljava/lang/String; = "MobileAgent"

.field private static final PRODUCT_URL:Ljava/lang/String; = "http://m.analytics.126.net/news/c"

.field private static final RECEIVE_URL:Ljava/lang/String; = "http://m.analytics.126.net/fb/receive"

.field private static final REPLY_URL:Ljava/lang/String; = "http://m.analytics.126.net/fb/reply"

.field private static final agent:Lcom/netease/mobileanalysis/MobileAgent;

.field private static appid:Ljava/lang/String;

.field private static bodyName:Ljava/lang/String;

.field private static errorBody:Ljava/lang/String;

.field private static feedBackResultCode:I

.field private static fid:Ljava/lang/String;

.field private static imei:Ljava/lang/String;

.field private static isGetInfo:Z

.field private static mid:Ljava/lang/String;

.field private static netTypeName:Ljava/lang/String;

.field private static operator:Ljava/lang/String;

.field private static replyModels:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/netease/mobileanalysis/ReplyModel;",
            ">;"
        }
    .end annotation
.end field

.field private static resolution:Ljava/lang/String;

.field private static system_model:Ljava/lang/String;

.field private static system_version:Ljava/lang/String;

.field private static version:Ljava/lang/String;


# instance fields
.field private final hander:Landroid/os/Handler;

.field private mContext:Landroid/content/Context;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 49
    new-instance v0, Lcom/netease/mobileanalysis/MobileAgent;

    invoke-direct {v0}, Lcom/netease/mobileanalysis/MobileAgent;-><init>()V

    sput-object v0, Lcom/netease/mobileanalysis/MobileAgent;->agent:Lcom/netease/mobileanalysis/MobileAgent;

    .line 57
    const-string v0, "com_netease_message_body"

    sput-object v0, Lcom/netease/mobileanalysis/MobileAgent;->bodyName:Ljava/lang/String;

    .line 58
    const-string v0, "com_netease_message_error"

    sput-object v0, Lcom/netease/mobileanalysis/MobileAgent;->errorBody:Ljava/lang/String;

    .line 69
    const/4 v0, 0x1

    sput-boolean v0, Lcom/netease/mobileanalysis/MobileAgent;->isGetInfo:Z

    .line 71
    const/4 v0, 0x0

    sput v0, Lcom/netease/mobileanalysis/MobileAgent;->feedBackResultCode:I

    .line 72
    const/4 v0, 0x0

    sput-object v0, Lcom/netease/mobileanalysis/MobileAgent;->replyModels:Ljava/util/List;

    .line 48
    return-void
.end method

.method private constructor <init>()V
    .locals 3

    .prologue
    .line 74
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 70
    const/4 v1, 0x0

    iput-object v1, p0, Lcom/netease/mobileanalysis/MobileAgent;->mContext:Landroid/content/Context;

    .line 75
    new-instance v0, Landroid/os/HandlerThread;

    const-string v1, "MobileAgent"

    invoke-direct {v0, v1}, Landroid/os/HandlerThread;-><init>(Ljava/lang/String;)V

    .line 76
    .local v0, localHandlerThread:Landroid/os/HandlerThread;
    invoke-virtual {v0}, Landroid/os/HandlerThread;->start()V

    .line 77
    new-instance v1, Landroid/os/Handler;

    invoke-virtual {v0}, Landroid/os/HandlerThread;->getLooper()Landroid/os/Looper;

    move-result-object v2

    invoke-direct {v1, v2}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    iput-object v1, p0, Lcom/netease/mobileanalysis/MobileAgent;->hander:Landroid/os/Handler;

    .line 78
    return-void
.end method

.method private static CatchLogError(Landroid/content/Context;)Ljava/lang/String;
    .locals 12
    .parameter "context"

    .prologue
    .line 957
    const-string v3, ""

    .line 959
    .local v3, error:Ljava/lang/String;
    :try_start_0
    invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v8

    .line 960
    .local v8, packageName:Ljava/lang/String;
    const-string v7, ""

    .line 961
    .local v7, log:Ljava/lang/String;
    const/4 v5, 0x0

    .line 962
    .local v5, ifOurs:Z
    const/4 v4, 0x0

    .line 963
    .local v4, ifException:Z
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 964
    .local v1, commandLine:Ljava/util/ArrayList;
    const-string v10, "logcat"

    invoke-virtual {v1, v10}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 965
    const-string v10, "-d"

    invoke-virtual {v1, v10}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 966
    const-string v10, "-v"

    invoke-virtual {v1, v10}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 967
    const-string v10, "raw"

    invoke-virtual {v1, v10}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 968
    const-string v10, "-s"

    invoke-virtual {v1, v10}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 969
    const-string v10, "AndroidRuntime:E"

    invoke-virtual {v1, v10}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 970
    const-string v10, "-p"

    invoke-virtual {v1, v10}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 971
    invoke-virtual {v1, v8}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 973
    invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;

    move-result-object v11

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v10

    new-array v10, v10, [Ljava/lang/String;

    invoke-virtual {v1, v10}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    move-result-object v10

    check-cast v10, [Ljava/lang/String;

    invoke-virtual {v11, v10}, Ljava/lang/Runtime;->exec([Ljava/lang/String;)Ljava/lang/Process;

    move-result-object v9

    .line 974
    .local v9, process:Ljava/lang/Process;
    new-instance v0, Ljava/io/BufferedReader;

    .line 975
    new-instance v10, Ljava/io/InputStreamReader;

    invoke-virtual {v9}, Ljava/lang/Process;->getInputStream()Ljava/io/InputStream;

    move-result-object v11

    invoke-direct {v10, v11}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;)V

    const/16 v11, 0x400

    .line 974
    invoke-direct {v0, v10, v11}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;I)V

    .line 976
    .local v0, bufferedReader:Ljava/io/BufferedReader;
    invoke-virtual {v0}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;

    move-result-object v6

    .line 978
    .local v6, line:Ljava/lang/String;
    :goto_0
    if-nez v6, :cond_1

    .line 988
    invoke-virtual {v7}, Ljava/lang/String;->length()I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    move-result v10

    if-lez v10, :cond_0

    if-eqz v4, :cond_0

    if-eqz v5, :cond_0

    .line 989
    move-object v3, v7

    .line 993
    :cond_0
    :try_start_1
    invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;

    move-result-object v10

    const-string v11, "logcat -c"

    invoke-virtual {v10, v11}, Ljava/lang/Runtime;->exec(Ljava/lang/String;)Ljava/lang/Process;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    .line 1000
    .end local v0           #bufferedReader:Ljava/io/BufferedReader;
    .end local v1           #commandLine:Ljava/util/ArrayList;
    .end local v4           #ifException:Z
    .end local v5           #ifOurs:Z
    .end local v6           #line:Ljava/lang/String;
    .end local v7           #log:Ljava/lang/String;
    .end local v8           #packageName:Ljava/lang/String;
    .end local v9           #process:Ljava/lang/Process;
    :goto_1
    return-object v3

    .line 979
    .restart local v0       #bufferedReader:Ljava/io/BufferedReader;
    .restart local v1       #commandLine:Ljava/util/ArrayList;
    .restart local v4       #ifException:Z
    .restart local v5       #ifOurs:Z
    .restart local v6       #line:Ljava/lang/String;
    .restart local v7       #log:Ljava/lang/String;
    .restart local v8       #packageName:Ljava/lang/String;
    .restart local v9       #process:Ljava/lang/Process;
    :cond_1
    :try_start_2
    const-string v10, "thread attach failed"

    invoke-virtual {v6, v10}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v10

    if-gez v10, :cond_2

    .line 980
    new-instance v10, Ljava/lang/StringBuilder;

    invoke-static {v7}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v11

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v10, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    const/16 v11, 0xa

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    .line 981
    :cond_2
    if-nez v4, :cond_3

    invoke-virtual {v6}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v10

    const-string v11, "exception"

    invoke-virtual {v10, v11}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v10

    if-ltz v10, :cond_3

    .line 982
    const/4 v4, 0x1

    .line 983
    :cond_3
    if-nez v5, :cond_4

    invoke-virtual {v6, v8}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v10

    if-ltz v10, :cond_4

    .line 984
    const/4 v5, 0x1

    .line 985
    :cond_4
    invoke-virtual {v0}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;

    move-result-object v6

    goto :goto_0

    .line 994
    :catch_0
    move-exception v2

    .line 995
    .local v2, e:Ljava/lang/Exception;
    const-string v10, "MobileAgent"

    const-string v11, "Failed to clear log"

    invoke-static {v10, v11}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1

    goto :goto_1

    .line 997
    .end local v0           #bufferedReader:Ljava/io/BufferedReader;
    .end local v1           #commandLine:Ljava/util/ArrayList;
    .end local v2           #e:Ljava/lang/Exception;
    .end local v4           #ifException:Z
    .end local v5           #ifOurs:Z
    .end local v6           #line:Ljava/lang/String;
    .end local v7           #log:Ljava/lang/String;
    .end local v8           #packageName:Ljava/lang/String;
    .end local v9           #process:Ljava/lang/Process;
    :catch_1
    move-exception v2

    .line 998
    .restart local v2       #e:Ljava/lang/Exception;
    const-string v10, "MobileAgent"

    const-string v11, "Failed to catch error log"

    invoke-static {v10, v11}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_1
.end method

.method static synthetic access$0()Lcom/netease/mobileanalysis/MobileAgent;
    .locals 1

    .prologue
    .line 49
    sget-object v0, Lcom/netease/mobileanalysis/MobileAgent;->agent:Lcom/netease/mobileanalysis/MobileAgent;

    return-object v0
.end method

.method static synthetic access$1(Lcom/netease/mobileanalysis/MobileAgent;Landroid/content/Context;Lorg/json/JSONArray;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 793
    invoke-direct {p0, p1, p2, p3}, Lcom/netease/mobileanalysis/MobileAgent;->tryToSendMessage(Landroid/content/Context;Lorg/json/JSONArray;Ljava/lang/String;)V

    return-void
.end method

.method static synthetic access$2(Lcom/netease/mobileanalysis/MobileAgent;)Landroid/content/Context;
    .locals 1
    .parameter

    .prologue
    .line 70
    iget-object v0, p0, Lcom/netease/mobileanalysis/MobileAgent;->mContext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$3(Landroid/content/Context;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 955
    invoke-static {p0}, Lcom/netease/mobileanalysis/MobileAgent;->CatchLogError(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$4(Lcom/netease/mobileanalysis/MobileAgent;Landroid/content/Context;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 700
    invoke-direct {p0, p1, p2}, Lcom/netease/mobileanalysis/MobileAgent;->emitErrorReport(Landroid/content/Context;Ljava/lang/String;)V

    return-void
.end method

.method private static cacheJSONArrayBody(Landroid/content/Context;Lorg/json/JSONArray;Ljava/lang/String;)V
    .locals 3
    .parameter "context"
    .parameter "body"
    .parameter "fileName"

    .prologue
    .line 1162
    const/4 v2, 0x0

    :try_start_0
    invoke-virtual {p0, p2, v2}, Landroid/content/Context;->openFileOutput(Ljava/lang/String;I)Ljava/io/FileOutputStream;

    move-result-object v1

    .line 1163
    .local v1, output:Ljava/io/FileOutputStream;
    invoke-virtual {p1}, Lorg/json/JSONArray;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/io/FileOutputStream;->write([B)V

    .line 1164
    invoke-virtual {v1}, Ljava/io/FileOutputStream;->close()V
    :try_end_0
    .catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1

    .line 1170
    .end local v1           #output:Ljava/io/FileOutputStream;
    :goto_0
    return-void

    .line 1165
    :catch_0
    move-exception v0

    .line 1166
    .local v0, e:Ljava/io/FileNotFoundException;
    goto :goto_0

    .line 1167
    .end local v0           #e:Ljava/io/FileNotFoundException;
    :catch_1
    move-exception v0

    .line 1168
    .local v0, e:Ljava/io/IOException;
    goto :goto_0
.end method

.method private static deleteCacheFile(Landroid/content/Context;Ljava/lang/String;)V
    .locals 0
    .parameter "context"
    .parameter "fileName"

    .prologue
    .line 1219
    invoke-virtual {p0, p1}, Landroid/content/Context;->deleteFile(Ljava/lang/String;)Z

    .line 1220
    return-void
.end method

.method private emitErrorReport(Landroid/content/Context;Ljava/lang/String;)V
    .locals 13
    .parameter "context"
    .parameter "error"

    .prologue
    const-wide/16 v11, 0x0

    .line 702
    sget-object v10, Lcom/netease/mobileanalysis/MobileAgent;->errorBody:Ljava/lang/String;

    invoke-static {p1, v10}, Lcom/netease/mobileanalysis/MobileAgent;->getCachedMessageBody(Landroid/content/Context;Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v5

    .line 704
    .local v5, message:Lorg/json/JSONArray;
    invoke-static {p1}, Lcom/netease/mobileanalysis/MobileAgent;->getSessionHeader(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v9

    .line 705
    .local v9, state_preferences:Landroid/content/SharedPreferences;
    if-nez v9, :cond_0

    .line 748
    :goto_0
    return-void

    .line 708
    :cond_0
    const-string v10, "session_start"

    invoke-interface {v9, v10, v11, v12}, Landroid/content/SharedPreferences;->getLong(Ljava/lang/String;J)J

    move-result-wide v7

    .line 709
    .local v7, start_millis:J
    cmp-long v10, v7, v11

    if-nez v10, :cond_1

    .line 711
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v7

    .line 713
    :cond_1
    const-string v10, "session_id"

    const-string v11, ""

    invoke-interface {v9, v10, v11}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    .line 714
    .local v6, session_id:Ljava/lang/String;
    if-nez v5, :cond_3

    .line 716
    new-instance v5, Lorg/json/JSONArray;

    .end local v5           #message:Lorg/json/JSONArray;
    invoke-direct {v5}, Lorg/json/JSONArray;-><init>()V

    .line 723
    .restart local v5       #message:Lorg/json/JSONArray;
    :cond_2
    :goto_1
    new-instance v4, Lorg/json/JSONObject;

    invoke-direct {v4}, Lorg/json/JSONObject;-><init>()V

    .line 724
    .local v4, jb:Lorg/json/JSONObject;
    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3}, Lorg/json/JSONObject;-><init>()V

    .line 726
    .local v3, info:Lorg/json/JSONObject;
    :try_start_0
    const-string v10, "s"

    invoke-virtual {v4, v10, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 727
    const-string v10, "u"

    const-string v11, "u"

    const-string v12, ""

    invoke-interface {v9, v11, v12}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v3, v10, v11}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 728
    const-string v10, "m"

    const-string v11, "m"

    const-string v12, ""

    invoke-interface {v9, v11, v12}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v3, v10, v11}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 729
    const-string v10, "o"

    const-string v11, "o"

    const-string v12, ""

    invoke-interface {v9, v11, v12}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v3, v10, v11}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 730
    const-string v10, "id"

    const-string v11, "id"

    const-string v12, ""

    invoke-interface {v9, v11, v12}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v3, v10, v11}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 731
    const-string v10, "v"

    const-string v11, "v"

    const-string v12, ""

    invoke-interface {v9, v11, v12}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v3, v10, v11}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 732
    const-string v10, "r"

    const-string v11, "r"

    const-string v12, ""

    invoke-interface {v9, v11, v12}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v3, v10, v11}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 733
    const-string v10, "mid"

    const-string v11, "mid"

    const-string v12, ""

    invoke-interface {v9, v11, v12}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v3, v10, v11}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 734
    const-string v10, "op"

    const-string v11, "op"

    const-string v12, ""

    invoke-interface {v9, v11, v12}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v3, v10, v11}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 735
    const-string v10, "nt"

    const-string v11, "nt"

    const-string v12, ""

    invoke-interface {v9, v11, v12}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v3, v10, v11}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 736
    const-string v10, "i"

    invoke-virtual {v4, v10, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 737
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V

    .line 738
    .local v1, errorMsg:Lorg/json/JSONObject;
    const-string v10, "t"

    invoke-virtual {v1, v10, v7, v8}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;

    .line 739
    const-string v10, "c"

    invoke-virtual {v1, v10, p2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 740
    new-instance v2, Lorg/json/JSONArray;

    invoke-direct {v2}, Lorg/json/JSONArray;-><init>()V

    .line 741
    .local v2, fault:Lorg/json/JSONArray;
    invoke-virtual {v2, v1}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;

    .line 742
    const-string v10, "f"

    invoke-virtual {v4, v10, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 743
    invoke-virtual {v5, v4}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    .line 747
    .end local v1           #errorMsg:Lorg/json/JSONObject;
    .end local v2           #fault:Lorg/json/JSONArray;
    :goto_2
    sget-object v10, Lcom/netease/mobileanalysis/MobileAgent;->errorBody:Ljava/lang/String;

    invoke-direct {p0, p1, v5, v10}, Lcom/netease/mobileanalysis/MobileAgent;->emitLastEndSessionReport(Landroid/content/Context;Lorg/json/JSONArray;Ljava/lang/String;)V

    goto/16 :goto_0

    .line 718
    .end local v3           #info:Lorg/json/JSONObject;
    .end local v4           #jb:Lorg/json/JSONObject;
    :cond_3
    invoke-virtual {v5}, Lorg/json/JSONArray;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/String;->length()I

    move-result v10

    const/16 v11, 0x270f

    if-le v10, v11, :cond_2

    .line 720
    new-instance v5, Lorg/json/JSONArray;

    .end local v5           #message:Lorg/json/JSONArray;
    invoke-direct {v5}, Lorg/json/JSONArray;-><init>()V

    .line 721
    .restart local v5       #message:Lorg/json/JSONArray;
    sget-object v10, Lcom/netease/mobileanalysis/MobileAgent;->errorBody:Ljava/lang/String;

    invoke-static {p1, v10}, Lcom/netease/mobileanalysis/MobileAgent;->deleteCacheFile(Landroid/content/Context;Ljava/lang/String;)V

    goto/16 :goto_1

    .line 744
    .restart local v3       #info:Lorg/json/JSONObject;
    .restart local v4       #jb:Lorg/json/JSONObject;
    :catch_0
    move-exception v0

    .line 745
    .local v0, e:Lorg/json/JSONException;
    const-string v10, "MobileAgent"

    const-string v11, "JSONException"

    invoke-static {v10, v11, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_2
.end method

.method private emitLastEndSessionReport(Landroid/content/Context;Lorg/json/JSONArray;Ljava/lang/String;)V
    .locals 2
    .parameter "context"
    .parameter "message"
    .parameter "fileName"

    .prologue
    .line 756
    iget-object v0, p0, Lcom/netease/mobileanalysis/MobileAgent;->hander:Landroid/os/Handler;

    new-instance v1, Lcom/netease/mobileanalysis/MobileAgent$ReportMessageHandler;

    invoke-direct {v1, p0, p1, p2, p3}, Lcom/netease/mobileanalysis/MobileAgent$ReportMessageHandler;-><init>(Lcom/netease/mobileanalysis/MobileAgent;Landroid/content/Context;Lorg/json/JSONArray;Ljava/lang/String;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 757
    return-void
.end method

.method private endSession(Landroid/content/Context;Landroid/content/SharedPreferences;)V
    .locals 12
    .parameter "context"
    .parameter "state_preferences"

    .prologue
    .line 629
    const-string v9, "session_id"

    const/4 v10, 0x0

    invoke-interface {p2, v9, v10}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    .line 630
    .local v8, session_id:Ljava/lang/String;
    const-string v9, "session_end"

    const-wide/16 v10, 0x0

    invoke-interface {p2, v9, v10, v11}, Landroid/content/SharedPreferences;->getLong(Ljava/lang/String;J)J

    move-result-wide v6

    .line 631
    .local v6, session_end:J
    if-nez v8, :cond_0

    .line 633
    const-string v9, "MobileAgent"

    const-string v10, "session_id==null"

    invoke-static {v9, v10}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 694
    :goto_0
    return-void

    .line 636
    :cond_0
    sget-object v9, Lcom/netease/mobileanalysis/MobileAgent;->bodyName:Ljava/lang/String;

    invoke-static {p1, v9}, Lcom/netease/mobileanalysis/MobileAgent;->getCachedMessageBody(Landroid/content/Context;Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v5

    .line 637
    .local v5, message:Lorg/json/JSONArray;
    if-nez v5, :cond_2

    .line 639
    new-instance v5, Lorg/json/JSONArray;

    .end local v5           #message:Lorg/json/JSONArray;
    invoke-direct {v5}, Lorg/json/JSONArray;-><init>()V

    .line 640
    .restart local v5       #message:Lorg/json/JSONArray;
    new-instance v4, Lorg/json/JSONObject;

    invoke-direct {v4}, Lorg/json/JSONObject;-><init>()V

    .line 641
    .local v4, jb:Lorg/json/JSONObject;
    new-instance v1, Lorg/json/JSONArray;

    invoke-direct {v1}, Lorg/json/JSONArray;-><init>()V

    .line 642
    .local v1, event:Lorg/json/JSONArray;
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    .line 644
    .local v0, e:Lorg/json/JSONObject;
    :try_start_0
    const-string v9, "s"

    invoke-virtual {v4, v9, v8}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 645
    const-string v9, "n"

    const-string v10, "$"

    invoke-virtual {v0, v9, v10}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 646
    const-string v9, "t"

    invoke-virtual {v0, v9, v6, v7}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;

    .line 647
    invoke-virtual {v1, v0}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;

    .line 648
    const-string v9, "e"

    invoke-virtual {v4, v9, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 649
    const-string v9, "id"

    sget-object v10, Lcom/netease/mobileanalysis/MobileAgent;->appid:Ljava/lang/String;

    invoke-virtual {v4, v9, v10}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 650
    invoke-virtual {v5, v4}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    .line 692
    .end local v0           #e:Lorg/json/JSONObject;
    .end local v1           #event:Lorg/json/JSONArray;
    .end local v4           #jb:Lorg/json/JSONObject;
    :cond_1
    :goto_1
    sget-object v9, Lcom/netease/mobileanalysis/MobileAgent;->bodyName:Ljava/lang/String;

    invoke-static {p1, v9}, Lcom/netease/mobileanalysis/MobileAgent;->deleteCacheFile(Landroid/content/Context;Ljava/lang/String;)V

    .line 693
    sget-object v9, Lcom/netease/mobileanalysis/MobileAgent;->bodyName:Ljava/lang/String;

    invoke-static {p1, v5, v9}, Lcom/netease/mobileanalysis/MobileAgent;->cacheJSONArrayBody(Landroid/content/Context;Lorg/json/JSONArray;Ljava/lang/String;)V

    goto :goto_0

    .line 651
    .restart local v0       #e:Lorg/json/JSONObject;
    .restart local v1       #event:Lorg/json/JSONArray;
    .restart local v4       #jb:Lorg/json/JSONObject;
    :catch_0
    move-exception v2

    .line 652
    .local v2, ex:Lorg/json/JSONException;
    const-string v9, "MobileAgent"

    const-string v10, "JSONException"

    invoke-static {v9, v10, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_1

    .line 658
    .end local v0           #e:Lorg/json/JSONObject;
    .end local v1           #event:Lorg/json/JSONArray;
    .end local v2           #ex:Lorg/json/JSONException;
    .end local v4           #jb:Lorg/json/JSONObject;
    :cond_2
    const/4 v3, 0x0

    .local v3, i:I
    :goto_2
    invoke-virtual {v5}, Lorg/json/JSONArray;->length()I

    move-result v9

    if-ge v3, v9, :cond_1

    .line 661
    :try_start_1
    invoke-virtual {v5, v3}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v4

    .line 662
    .restart local v4       #jb:Lorg/json/JSONObject;
    const-string v9, "s"

    invoke-virtual {v4, v9}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v9

    if-eqz v9, :cond_3

    const-string v9, "s"

    invoke-virtual {v4, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v9, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_3

    .line 664
    const-string v9, "e"

    invoke-virtual {v4, v9}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v9

    if-eqz v9, :cond_4

    .line 666
    const-string v9, "e"

    invoke-virtual {v4, v9}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v1

    .line 667
    .restart local v1       #event:Lorg/json/JSONArray;
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    .line 668
    .restart local v0       #e:Lorg/json/JSONObject;
    const-string v9, "n"

    const-string v10, "$"

    invoke-virtual {v0, v9, v10}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 669
    const-string v9, "t"

    invoke-virtual {v0, v9, v6, v7}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;

    .line 670
    invoke-virtual {v1, v0}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;

    .line 671
    const-string v9, "e"

    invoke-virtual {v4, v9, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 672
    const-string v9, "id"

    sget-object v10, Lcom/netease/mobileanalysis/MobileAgent;->appid:Ljava/lang/String;

    invoke-virtual {v4, v9, v10}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 673
    invoke-virtual {v5, v3, v4}, Lorg/json/JSONArray;->put(ILjava/lang/Object;)Lorg/json/JSONArray;

    .line 658
    .end local v0           #e:Lorg/json/JSONObject;
    .end local v1           #event:Lorg/json/JSONArray;
    .end local v4           #jb:Lorg/json/JSONObject;
    :cond_3
    :goto_3
    add-int/lit8 v3, v3, 0x1

    goto :goto_2

    .line 677
    .restart local v4       #jb:Lorg/json/JSONObject;
    :cond_4
    new-instance v1, Lorg/json/JSONArray;

    invoke-direct {v1}, Lorg/json/JSONArray;-><init>()V

    .line 678
    .restart local v1       #event:Lorg/json/JSONArray;
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    .line 679
    .restart local v0       #e:Lorg/json/JSONObject;
    const-string v9, "n"

    const-string v10, "$"

    invoke-virtual {v0, v9, v10}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 680
    const-string v9, "t"

    invoke-virtual {v0, v9, v6, v7}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;

    .line 681
    invoke-virtual {v1, v0}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;

    .line 682
    const-string v9, "e"

    invoke-virtual {v4, v9, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 683
    const-string v9, "id"

    sget-object v10, Lcom/netease/mobileanalysis/MobileAgent;->appid:Ljava/lang/String;

    invoke-virtual {v4, v9, v10}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 684
    invoke-virtual {v5, v3, v4}, Lorg/json/JSONArray;->put(ILjava/lang/Object;)Lorg/json/JSONArray;
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_1

    goto :goto_3

    .line 687
    .end local v0           #e:Lorg/json/JSONObject;
    .end local v1           #event:Lorg/json/JSONArray;
    .end local v4           #jb:Lorg/json/JSONObject;
    :catch_1
    move-exception v0

    .line 688
    .local v0, e:Lorg/json/JSONException;
    const-string v9, "MobileAgent"

    const-string v10, "JSONException"

    invoke-static {v9, v10, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_3
.end method

.method public static getAccess(Landroid/content/Context;)Ljava/lang/String;
    .locals 8
    .parameter "paramContext"

    .prologue
    .line 1109
    const-string v4, "unknown"

    .line 1110
    .local v4, result:Ljava/lang/String;
    invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v3

    .line 1111
    .local v3, localPackageManager:Landroid/content/pm/PackageManager;
    const-string v6, "android.permission.ACCESS_NETWORK_STATE"

    invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v3, v6, v7}, Landroid/content/pm/PackageManager;->checkPermission(Ljava/lang/String;Ljava/lang/String;)I

    move-result v6

    if-eqz v6, :cond_0

    move-object v5, v4

    .line 1132
    .end local v4           #result:Ljava/lang/String;
    .local v5, result:Ljava/lang/String;
    :goto_0
    return-object v5

    .line 1115
    .end local v5           #result:Ljava/lang/String;
    .restart local v4       #result:Ljava/lang/String;
    :cond_0
    const-string v6, "connectivity"

    invoke-virtual {p0, v6}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/net/ConnectivityManager;

    .line 1116
    .local v0, localConnectivityManager:Landroid/net/ConnectivityManager;
    if-nez v0, :cond_1

    move-object v5, v4

    .line 1118
    .end local v4           #result:Ljava/lang/String;
    .restart local v5       #result:Ljava/lang/String;
    goto :goto_0

    .line 1120
    .end local v5           #result:Ljava/lang/String;
    .restart local v4       #result:Ljava/lang/String;
    :cond_1
    const/4 v6, 0x1

    invoke-virtual {v0, v6}, Landroid/net/ConnectivityManager;->getNetworkInfo(I)Landroid/net/NetworkInfo;

    move-result-object v1

    .line 1121
    .local v1, localNetworkInfo1:Landroid/net/NetworkInfo;
    invoke-virtual {v1}, Landroid/net/NetworkInfo;->getState()Landroid/net/NetworkInfo$State;

    move-result-object v6

    sget-object v7, Landroid/net/NetworkInfo$State;->CONNECTED:Landroid/net/NetworkInfo$State;

    if-ne v6, v7, :cond_2

    .line 1123
    const-string v4, "WIFI"

    move-object v5, v4

    .line 1124
    .end local v4           #result:Ljava/lang/String;
    .restart local v5       #result:Ljava/lang/String;
    goto :goto_0

    .line 1126
    .end local v5           #result:Ljava/lang/String;
    .restart local v4       #result:Ljava/lang/String;
    :cond_2
    const/4 v6, 0x0

    invoke-virtual {v0, v6}, Landroid/net/ConnectivityManager;->getNetworkInfo(I)Landroid/net/NetworkInfo;

    move-result-object v2

    .line 1127
    .local v2, localNetworkInfo2:Landroid/net/NetworkInfo;
    invoke-virtual {v2}, Landroid/net/NetworkInfo;->getState()Landroid/net/NetworkInfo$State;

    move-result-object v6

    sget-object v7, Landroid/net/NetworkInfo$State;->CONNECTED:Landroid/net/NetworkInfo$State;

    if-ne v6, v7, :cond_3

    .line 1129
    invoke-virtual {v2}, Landroid/net/NetworkInfo;->getSubtypeName()Ljava/lang/String;

    move-result-object v4

    move-object v5, v4

    .line 1130
    .end local v4           #result:Ljava/lang/String;
    .restart local v5       #result:Ljava/lang/String;
    goto :goto_0

    .end local v5           #result:Ljava/lang/String;
    .restart local v4       #result:Ljava/lang/String;
    :cond_3
    move-object v5, v4

    .line 1132
    .end local v4           #result:Ljava/lang/String;
    .restart local v5       #result:Ljava/lang/String;
    goto :goto_0
.end method

.method private static getCachedMessageBody(Landroid/content/Context;Ljava/lang/String;)Lorg/json/JSONArray;
    .locals 9
    .parameter "context"
    .parameter "fileName"

    .prologue
    const/4 v5, 0x0

    .line 1181
    :try_start_0
    invoke-virtual {p0, p1}, Landroid/content/Context;->openFileInput(Ljava/lang/String;)Ljava/io/FileInputStream;

    move-result-object v2

    .line 1183
    .local v2, input:Ljava/io/FileInputStream;
    const-string v3, ""

    .line 1184
    .local v3, json_text:Ljava/lang/String;
    const/16 v6, 0x4000

    new-array v0, v6, [B

    .line 1185
    .local v0, buffer:[B
    const/4 v4, 0x0

    .line 1186
    .local v4, read_bytes:I
    :goto_0
    invoke-virtual {v2, v0}, Ljava/io/FileInputStream;->read([B)I

    move-result v4

    const/4 v6, -0x1

    if-ne v4, v6, :cond_0

    .line 1190
    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v6

    if-nez v6, :cond_1

    .line 1208
    .end local v0           #buffer:[B
    .end local v2           #input:Ljava/io/FileInputStream;
    .end local v3           #json_text:Ljava/lang/String;
    .end local v4           #read_bytes:I
    :goto_1
    return-object v5

    .line 1187
    .restart local v0       #buffer:[B
    .restart local v2       #input:Ljava/io/FileInputStream;
    .restart local v3       #json_text:Ljava/lang/String;
    .restart local v4       #read_bytes:I
    :cond_0
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v7

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    new-instance v7, Ljava/lang/String;

    const/4 v8, 0x0

    invoke-direct {v7, v0, v8, v4}, Ljava/lang/String;-><init>([BII)V

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
    :try_end_0
    .catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_2

    move-result-object v3

    goto :goto_0

    .line 1195
    :cond_1
    :try_start_1
    new-instance v6, Lorg/json/JSONArray;

    invoke-direct {v6, v3}, Lorg/json/JSONArray;-><init>(Ljava/lang/String;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    .line 1200
    :try_start_2
    invoke-virtual {v2}, Ljava/io/FileInputStream;->close()V
    :try_end_2
    .catch Ljava/io/FileNotFoundException; {:try_start_2 .. :try_end_2} :catch_1
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_2

    move-object v5, v6

    .line 1195
    goto :goto_1

    .line 1196
    :catch_0
    move-exception v1

    .line 1197
    .local v1, e:Lorg/json/JSONException;
    :try_start_3
    const-string v6, "MobileAgent"

    const-string v7, "Fail to construct json message."

    invoke-static {v6, v7}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    .line 1200
    :try_start_4
    invoke-virtual {v2}, Ljava/io/FileInputStream;->close()V
    :try_end_4
    .catch Ljava/io/FileNotFoundException; {:try_start_4 .. :try_end_4} :catch_1
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_2

    goto :goto_1

    .line 1202
    .end local v0           #buffer:[B
    .end local v1           #e:Lorg/json/JSONException;
    .end local v2           #input:Ljava/io/FileInputStream;
    .end local v3           #json_text:Ljava/lang/String;
    .end local v4           #read_bytes:I
    :catch_1
    move-exception v1

    .line 1203
    .local v1, e:Ljava/io/FileNotFoundException;
    const-string v6, "MobileAgent"

    const-string v7, "getCachedMessageBody FileNotFoundException"

    invoke-static {v6, v7}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_1

    .line 1199
    .end local v1           #e:Ljava/io/FileNotFoundException;
    .restart local v0       #buffer:[B
    .restart local v2       #input:Ljava/io/FileInputStream;
    .restart local v3       #json_text:Ljava/lang/String;
    .restart local v4       #read_bytes:I
    :catchall_0
    move-exception v6

    .line 1200
    :try_start_5
    invoke-virtual {v2}, Ljava/io/FileInputStream;->close()V

    .line 1201
    throw v6
    :try_end_5
    .catch Ljava/io/FileNotFoundException; {:try_start_5 .. :try_end_5} :catch_1
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_2

    .line 1205
    .end local v0           #buffer:[B
    .end local v2           #input:Ljava/io/FileInputStream;
    .end local v3           #json_text:Ljava/lang/String;
    .end local v4           #read_bytes:I
    :catch_2
    move-exception v1

    .line 1206
    .local v1, e:Ljava/io/IOException;
    const-string v6, "MobileAgent"

    const-string v7, "getCachedMessageBody IOException"

    invoke-static {v6, v7}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_1
.end method

.method public static getErrorOnCreate(Landroid/content/Context;)V
    .locals 3
    .parameter "context"

    .prologue
    .line 477
    if-nez p0, :cond_0

    .line 478
    :try_start_0
    const-string v1, "MobileAgent"

    const-string v2, "unexpected null context"

    invoke-static {v1, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 489
    :goto_0
    return-void

    .line 481
    :cond_0
    invoke-static {p0}, Lcom/netease/mobileanalysis/MobileAgent;->getInfo(Landroid/content/Context;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 483
    const/4 v1, 0x0

    sput-boolean v1, Lcom/netease/mobileanalysis/MobileAgent;->isGetInfo:Z

    .line 485
    :cond_1
    sget-object v1, Lcom/netease/mobileanalysis/MobileAgent;->agent:Lcom/netease/mobileanalysis/MobileAgent;

    invoke-direct {v1, p0}, Lcom/netease/mobileanalysis/MobileAgent;->onErrorInternal(Landroid/content/Context;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 486
    :catch_0
    move-exception v0

    .line 487
    .local v0, e:Ljava/lang/Exception;
    const-string v1, "MobileAgent"

    const-string v2, "Exception occurred in Mobclick.onError()"

    invoke-static {v1, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0
.end method

.method public static getErrorOnRunning(Landroid/content/Context;Ljava/lang/String;)V
    .locals 3
    .parameter "context"
    .parameter "errorMsg"

    .prologue
    .line 496
    if-nez p0, :cond_0

    .line 497
    :try_start_0
    const-string v1, "MobileAgent"

    const-string v2, "unexpected null context"

    invoke-static {v1, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 509
    :goto_0
    return-void

    .line 500
    :cond_0
    if-eqz p1, :cond_1

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v1

    if-nez v1, :cond_2

    .line 502
    :cond_1
    const-string v1, "MobileAgent"

    const-string v2, "unexpected null errorMsg"

    invoke-static {v1, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 506
    :catch_0
    move-exception v0

    .line 507
    .local v0, e:Ljava/lang/Exception;
    const-string v1, "MobileAgent"

    const-string v2, "Exception occurred in Mobclick.onError()"

    invoke-static {v1, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0

    .line 505
    .end local v0           #e:Ljava/lang/Exception;
    :cond_2
    :try_start_1
    sget-object v1, Lcom/netease/mobileanalysis/MobileAgent;->agent:Lcom/netease/mobileanalysis/MobileAgent;

    invoke-direct {v1, p0, p1}, Lcom/netease/mobileanalysis/MobileAgent;->onErrorInternal(Landroid/content/Context;Ljava/lang/String;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0
.end method

.method private static getInfo(Landroid/content/Context;)Z
    .locals 15
    .parameter "context"

    .prologue
    const/4 v12, 0x0

    .line 1035
    invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v5

    .line 1037
    .local v5, manager:Landroid/content/pm/PackageManager;
    :try_start_0
    invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v13

    const/16 v14, 0x80

    invoke-virtual {v5, v13, v14}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;

    move-result-object v4

    .line 1038
    .local v4, info:Landroid/content/pm/ApplicationInfo;
    if-eqz v4, :cond_1

    .line 1040
    iget-object v13, v4, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;

    const-string v14, "APPKEY"

    invoke-virtual {v13, v14}, Landroid/os/Bundle;->get(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v13

    sput-object v13, Lcom/netease/mobileanalysis/MobileAgent;->appid:Ljava/lang/String;

    .line 1041
    iget-object v13, v4, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;

    const-string v14, "VERSION"

    invoke-virtual {v13, v14}, Landroid/os/Bundle;->get(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v13

    sput-object v13, Lcom/netease/mobileanalysis/MobileAgent;->version:Ljava/lang/String;

    .line 1042
    iget-object v13, v4, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;

    const-string v14, "Channel"

    invoke-virtual {v13, v14}, Landroid/os/Bundle;->get(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v13

    sput-object v13, Lcom/netease/mobileanalysis/MobileAgent;->mid:Ljava/lang/String;

    .line 1043
    sget-object v13, Lcom/netease/mobileanalysis/MobileAgent;->mid:Ljava/lang/String;

    if-nez v13, :cond_0

    .line 1045
    const-string v13, "netease"

    sput-object v13, Lcom/netease/mobileanalysis/MobileAgent;->mid:Ljava/lang/String;
    :try_end_0
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    .line 1057
    .end local v4           #info:Landroid/content/pm/ApplicationInfo;
    :cond_0
    :goto_0
    const-string v13, "phone"

    invoke-virtual {p0, v13}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Landroid/telephony/TelephonyManager;

    .line 1058
    .local v9, tm:Landroid/telephony/TelephonyManager;
    if-nez v9, :cond_2

    .line 1059
    const-string v13, "MobileAgent"

    const-string v14, "No IMEI."

    invoke-static {v13, v14}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    .line 1104
    .end local v9           #tm:Landroid/telephony/TelephonyManager;
    :goto_1
    return v12

    .line 1050
    .restart local v4       #info:Landroid/content/pm/ApplicationInfo;
    :cond_1
    :try_start_1
    const-string v13, "MobileAgent"

    const-string v14, "info is null."

    invoke-static {v13, v14}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_1
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_1

    .line 1053
    .end local v4           #info:Landroid/content/pm/ApplicationInfo;
    :catch_0
    move-exception v1

    .line 1054
    .local v1, e:Landroid/content/pm/PackageManager$NameNotFoundException;
    const-string v13, "MobileAgent"

    const-string v14, "NameNotFoundException"

    invoke-static {v13, v14, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_0

    .line 1062
    .end local v1           #e:Landroid/content/pm/PackageManager$NameNotFoundException;
    .restart local v9       #tm:Landroid/telephony/TelephonyManager;
    :cond_2
    invoke-static {p0}, Lcom/netease/mobileanalysis/MobileAgent;->getAccess(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v13

    sput-object v13, Lcom/netease/mobileanalysis/MobileAgent;->netTypeName:Ljava/lang/String;

    .line 1063
    invoke-virtual {v9}, Landroid/telephony/TelephonyManager;->getSimOperatorName()Ljava/lang/String;

    move-result-object v13

    sput-object v13, Lcom/netease/mobileanalysis/MobileAgent;->operator:Ljava/lang/String;

    .line 1064
    invoke-virtual {v9}, Landroid/telephony/TelephonyManager;->getDeviceId()Ljava/lang/String;

    move-result-object v13

    sput-object v13, Lcom/netease/mobileanalysis/MobileAgent;->imei:Ljava/lang/String;

    .line 1065
    sget-object v13, Lcom/netease/mobileanalysis/MobileAgent;->imei:Ljava/lang/String;

    if-eqz v13, :cond_3

    sget-object v13, Lcom/netease/mobileanalysis/MobileAgent;->imei:Ljava/lang/String;

    invoke-static {v13}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v13

    if-eqz v13, :cond_5

    .line 1066
    :cond_3
    const-string v13, "MobileAgent"

    const-string v14, "No IMEI.."

    invoke-static {v13, v14}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    .line 1067
    const-string v13, "wifi"

    invoke-virtual {p0, v13}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v10

    check-cast v10, Landroid/net/wifi/WifiManager;

    .line 1068
    .local v10, wifi:Landroid/net/wifi/WifiManager;
    invoke-virtual {v10}, Landroid/net/wifi/WifiManager;->getConnectionInfo()Landroid/net/wifi/WifiInfo;

    move-result-object v4

    .line 1069
    .local v4, info:Landroid/net/wifi/WifiInfo;
    invoke-virtual {v4}, Landroid/net/wifi/WifiInfo;->getMacAddress()Ljava/lang/String;

    move-result-object v13

    sput-object v13, Lcom/netease/mobileanalysis/MobileAgent;->imei:Ljava/lang/String;

    .line 1070
    sget-object v13, Lcom/netease/mobileanalysis/MobileAgent;->imei:Ljava/lang/String;

    if-eqz v13, :cond_4

    sget-object v13, Lcom/netease/mobileanalysis/MobileAgent;->imei:Ljava/lang/String;

    invoke-static {v13}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v13

    if-eqz v13, :cond_5

    .line 1072
    :cond_4
    const-string v13, "MobileAgent"

    const-string v14, "No WIFI MAC.."

    invoke-static {v13, v14}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_1

    .line 1076
    .end local v4           #info:Landroid/net/wifi/WifiInfo;
    .end local v10           #wifi:Landroid/net/wifi/WifiManager;
    :cond_5
    new-instance v0, Landroid/util/DisplayMetrics;

    invoke-direct {v0}, Landroid/util/DisplayMetrics;-><init>()V

    .line 1077
    .local v0, dm:Landroid/util/DisplayMetrics;
    const-string v13, "window"

    invoke-virtual {p0, v13}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v11

    check-cast v11, Landroid/view/WindowManager;

    .line 1078
    .local v11, wm:Landroid/view/WindowManager;
    invoke-interface {v11}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v13

    invoke-virtual {v13, v0}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

    .line 1079
    new-instance v13, Ljava/lang/StringBuilder;

    iget v14, v0, Landroid/util/DisplayMetrics;->widthPixels:I

    invoke-static {v14}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v14

    invoke-direct {v13, v14}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v14, "*"

    invoke-virtual {v13, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v13

    iget v14, v0, Landroid/util/DisplayMetrics;->heightPixels:I

    invoke-virtual {v13, v14}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    sput-object v13, Lcom/netease/mobileanalysis/MobileAgent;->resolution:Ljava/lang/String;

    .line 1081
    invoke-static {p0}, Lcom/netease/mobileanalysis/MobileAgent;->getSessionHeader(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v3

    .line 1082
    .local v3, header_preferences:Landroid/content/SharedPreferences;
    if-nez v3, :cond_6

    .line 1084
    const-string v13, "MobileAgent"

    const-string v14, "header_preferences == null."

    invoke-static {v13, v14}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 :goto_1

    .line 1087
    :cond_6
    invoke-interface {v3}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v2

    .line 1088
    .local v2, editor:Landroid/content/SharedPreferences$Editor;
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v7

    .line 1089
    .local v7, start_millis:J
    new-instance v12, Ljava/lang/StringBuilder;

    sget-object v13, Lcom/netease/mobileanalysis/MobileAgent;->appid:Ljava/lang/String;

    invoke-static {v13}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v13

    invoke-direct {v12, v13}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {v7, v8}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    .line 1090
    .local v6, session_id:Ljava/lang/String;
    const-string v12, "session_id"

    invoke-interface {v2, v12, v6}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 1091
    const-string v12, "session_start"

    invoke-interface {v2, v12, v7, v8}, Landroid/content/SharedPreferences$Editor;->putLong(Ljava/lang/String;J)Landroid/content/SharedPreferences$Editor;

    .line 1092
    const-string v12, "u"

    sget-object v13, Lcom/netease/mobileanalysis/MobileAgent;->imei:Ljava/lang/String;

    invoke-interface {v2, v12, v13}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 1093
    sget-object v12, Landroid/os/Build;->MODEL:Ljava/lang/String;

    sput-object v12, Lcom/netease/mobileanalysis/MobileAgent;->system_model:Ljava/lang/String;

    .line 1094
    sget-object v12, Landroid/os/Build$VERSION;->RELEASE:Ljava/lang/String;

    sput-object v12, Lcom/netease/mobileanalysis/MobileAgent;->system_version:Ljava/lang/String;

    .line 1095
    const-string v12, "m"

    sget-object v13, Lcom/netease/mobileanalysis/MobileAgent;->system_model:Ljava/lang/String;

    invoke-interface {v2, v12, v13}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 1096
    const-string v12, "o"

    sget-object v13, Lcom/netease/mobileanalysis/MobileAgent;->system_version:Ljava/lang/String;

    invoke-interface {v2, v12, v13}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 1097
    const-string v12, "id"

    sget-object v13, Lcom/netease/mobileanalysis/MobileAgent;->appid:Ljava/lang/String;

    invoke-interface {v2, v12, v13}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 1098
    const-string v12, "v"

    sget-object v13, Lcom/netease/mobileanalysis/MobileAgent;->version:Ljava/lang/String;

    invoke-interface {v2, v12, v13}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 1099
    const-string v12, "r"

    sget-object v13, Lcom/netease/mobileanalysis/MobileAgent;->resolution:Ljava/lang/String;

    invoke-interface {v2, v12, v13}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 1100
    const-string v12, "mid"

    sget-object v13, Lcom/netease/mobileanalysis/MobileAgent;->mid:Ljava/lang/String;

    invoke-interface {v2, v12, v13}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 1101
    const-string v12, "op"

    sget-object v13, Lcom/netease/mobileanalysis/MobileAgent;->operator:Ljava/lang/String;

    invoke-interface {v2, v12, v13}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 1102
    const-string v12, "nt"

    sget-object v13, Lcom/netease/mobileanalysis/MobileAgent;->netTypeName:Ljava/lang/String;

    invoke-interface {v2, v12, v13}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 1103
    invoke-interface {v2}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 1104
    const/4 v12, 0x1

    goto/16 :goto_1
.end method

.method public static getReplyByFeedBackIds(Ljava/util/List;)Ljava/util/List;
    .locals 1
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;)",
            "Ljava/util/List",
            "<",
            "Lcom/netease/mobileanalysis/ReplyModel;",
            ">;"
        }
    .end annotation

    .prologue
    .line 111
    .local p0, feedbackIds:Ljava/util/List;,"Ljava/util/List<Ljava/lang/String;>;"
    sget-object v0, Lcom/netease/mobileanalysis/MobileAgent;->agent:Lcom/netease/mobileanalysis/MobileAgent;

    invoke-direct {v0, p0}, Lcom/netease/mobileanalysis/MobileAgent;->getReplyLocal(Ljava/util/List;)Ljava/util/List;

    move-result-object v0

    return-object v0
.end method

.method private getReplyLocal(Ljava/util/List;)Ljava/util/List;
    .locals 17
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;)",
            "Ljava/util/List",
            "<",
            "Lcom/netease/mobileanalysis/ReplyModel;",
            ">;"
        }
    .end annotation

    .prologue
    .line 379
    .local p1, feedbackIds:Ljava/util/List;,"Ljava/util/List<Ljava/lang/String;>;"
    new-instance v13, Ljava/text/SimpleDateFormat;

    const-string v14, "yyyy-MM-dd HH:mm:ss"

    invoke-direct {v13, v14}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    .line 380
    .local v13, sdf:Ljava/text/SimpleDateFormat;
    const/4 v10, 0x0

    .line 381
    .local v10, resutTemp:Ljava/lang/String;
    if-eqz p1, :cond_0

    invoke-interface/range {p1 .. p1}, Ljava/util/List;->size()I

    move-result v14

    if-lez v14, :cond_0

    .line 383
    new-instance v3, Lorg/apache/http/client/methods/HttpPost;

    const-string v14, "http://m.analytics.126.net/fb/reply"

    invoke-direct {v3, v14}, Lorg/apache/http/client/methods/HttpPost;-><init>(Ljava/lang/String;)V

    .line 384
    .local v3, httpRequest:Lorg/apache/http/client/methods/HttpPost;
    new-instance v9, Ljava/util/ArrayList;

    invoke-direct {v9}, Ljava/util/ArrayList;-><init>()V

    .line 385
    .local v9, params:Ljava/util/List;,"Ljava/util/List<Lorg/apache/http/NameValuePair;>;"
    new-instance v12, Ljava/lang/StringBuffer;

    invoke-direct {v12}, Ljava/lang/StringBuffer;-><init>()V

    .line 386
    .local v12, sb:Ljava/lang/StringBuffer;
    const/4 v5, 0x0

    .local v5, i:I
    invoke-interface/range {p1 .. p1}, Ljava/util/List;->size()I

    move-result v8

    .local v8, n:I
    :goto_0
    if-lt v5, v8, :cond_1

    .line 394
    new-instance v14, Lorg/apache/http/message/BasicNameValuePair;

    const-string v15, "fids"

    invoke-virtual {v12}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v16

    invoke-direct/range {v14 .. v16}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-interface {v9, v14}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 395
    new-instance v14, Ljava/util/ArrayList;

    const/4 v15, 0x0

    invoke-direct {v14, v15}, Ljava/util/ArrayList;-><init>(I)V

    sput-object v14, Lcom/netease/mobileanalysis/MobileAgent;->replyModels:Ljava/util/List;

    .line 399
    :try_start_0
    new-instance v14, Lorg/apache/http/client/entity/UrlEncodedFormEntity;

    const-string v15, "UTF-8"

    invoke-direct {v14, v9, v15}, Lorg/apache/http/client/entity/UrlEncodedFormEntity;-><init>(Ljava/util/List;Ljava/lang/String;)V

    invoke-virtual {v3, v14}, Lorg/apache/http/client/methods/HttpPost;->setEntity(Lorg/apache/http/HttpEntity;)V

    .line 401
    new-instance v2, Lorg/apache/http/impl/client/DefaultHttpClient;

    invoke-direct {v2}, Lorg/apache/http/impl/client/DefaultHttpClient;-><init>()V

    .line 403
    .local v2, httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    invoke-virtual {v2}, Lorg/apache/http/impl/client/DefaultHttpClient;->getParams()Lorg/apache/http/params/HttpParams;

    move-result-object v14

    const-string v15, "http.connection.timeout"

    const/16 v16, 0x1388

    invoke-static/range {v16 .. v16}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v16

    invoke-interface/range {v14 .. v16}, Lorg/apache/http/params/HttpParams;->setParameter(Ljava/lang/String;Ljava/lang/Object;)Lorg/apache/http/params/HttpParams;

    .line 405
    invoke-virtual {v2}, Lorg/apache/http/impl/client/DefaultHttpClient;->getParams()Lorg/apache/http/params/HttpParams;

    move-result-object v14

    const-string v15, "http.socket.timeout"

    const/16 v16, 0x1388

    invoke-static/range {v16 .. v16}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v16

    invoke-interface/range {v14 .. v16}, Lorg/apache/http/params/HttpParams;->setParameter(Ljava/lang/String;Ljava/lang/Object;)Lorg/apache/http/params/HttpParams;

    .line 406
    invoke-virtual {v2, v3}, Lorg/apache/http/impl/client/DefaultHttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object v4

    .line 408
    .local v4, httpResponse:Lorg/apache/http/HttpResponse;
    invoke-interface {v4}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object v14

    invoke-interface {v14}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result v14

    const/16 v15, 0xc8

    if-ne v14, v15, :cond_0

    .line 411
    invoke-interface {v4}, Lorg/apache/http/HttpResponse;->getEntity()Lorg/apache/http/HttpEntity;

    move-result-object v14

    const-string v15, "UTF-8"

    invoke-static {v14, v15}, Lorg/apache/http/util/EntityUtils;->toString(Lorg/apache/http/HttpEntity;Ljava/lang/String;)Ljava/lang/String;
    :try_end_0
    .catch Lorg/apache/http/client/ClientProtocolException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_2
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_3

    move-result-object v10

    .line 412
    if-eqz v10, :cond_0

    .line 415
    :try_start_1
    new-instance v6, Lorg/json/JSONArray;

    invoke-direct {v6, v10}, Lorg/json/JSONArray;-><init>(Ljava/lang/String;)V

    .line 416
    .local v6, ja:Lorg/json/JSONArray;
    const/4 v7, 0x0

    .line 417
    .local v7, jb:Lorg/json/JSONObject;
    const/4 v11, 0x0

    .line 418
    .local v11, rm:Lcom/netease/mobileanalysis/ReplyModel;
    const/4 v5, 0x0

    invoke-virtual {v6}, Lorg/json/JSONArray;->length()I

    move-result v8

    :goto_1
    if-lt v5, v8, :cond_3

    .line 427
    invoke-direct/range {p0 .. p1}, Lcom/netease/mobileanalysis/MobileAgent;->sendReceiveMessage(Ljava/util/List;)V
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0
    .catch Lorg/apache/http/client/ClientProtocolException; {:try_start_1 .. :try_end_1} :catch_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_2
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_3

    .line 453
    .end local v2           #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .end local v3           #httpRequest:Lorg/apache/http/client/methods/HttpPost;
    .end local v4           #httpResponse:Lorg/apache/http/HttpResponse;
    .end local v5           #i:I
    .end local v6           #ja:Lorg/json/JSONArray;
    .end local v7           #jb:Lorg/json/JSONObject;
    .end local v8           #n:I
    .end local v9           #params:Ljava/util/List;,"Ljava/util/List<Lorg/apache/http/NameValuePair;>;"
    .end local v11           #rm:Lcom/netease/mobileanalysis/ReplyModel;
    .end local v12           #sb:Ljava/lang/StringBuffer;
    :cond_0
    :goto_2
    sget-object v14, Lcom/netease/mobileanalysis/MobileAgent;->replyModels:Ljava/util/List;

    return-object v14

    .line 388
    .restart local v3       #httpRequest:Lorg/apache/http/client/methods/HttpPost;
    .restart local v5       #i:I
    .restart local v8       #n:I
    .restart local v9       #params:Ljava/util/List;,"Ljava/util/List<Lorg/apache/http/NameValuePair;>;"
    .restart local v12       #sb:Ljava/lang/StringBuffer;
    :cond_1
    move-object/from16 v0, p1

    invoke-interface {v0, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v14

    check-cast v14, Ljava/lang/String;

    invoke-virtual {v12, v14}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 389
    add-int/lit8 v14, v8, -0x1

    if-eq v5, v14, :cond_2

    .line 391
    const-string v14, ","

    invoke-virtual {v12, v14}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 386
    :cond_2
    add-int/lit8 v5, v5, 0x1

    goto/16 :goto_0

    .line 420
    .restart local v2       #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .restart local v4       #httpResponse:Lorg/apache/http/HttpResponse;
    .restart local v6       #ja:Lorg/json/JSONArray;
    .restart local v7       #jb:Lorg/json/JSONObject;
    .restart local v11       #rm:Lcom/netease/mobileanalysis/ReplyModel;
    :cond_3
    :try_start_2
    invoke-virtual {v6, v5}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v7

    .line 421
    new-instance v11, Lcom/netease/mobileanalysis/ReplyModel;

    .end local v11           #rm:Lcom/netease/mobileanalysis/ReplyModel;
    invoke-direct {v11}, Lcom/netease/mobileanalysis/ReplyModel;-><init>()V

    .line 422
    .restart local v11       #rm:Lcom/netease/mobileanalysis/ReplyModel;
    const-string v14, "t"

    invoke-virtual {v7, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v13, v14}, Ljava/text/SimpleDateFormat;->parse(Ljava/lang/String;)Ljava/util/Date;

    move-result-object v14

    invoke-virtual {v11, v14}, Lcom/netease/mobileanalysis/ReplyModel;->setTime(Ljava/util/Date;)V

    .line 423
    const-string v14, "fid"

    invoke-virtual {v7, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v11, v14}, Lcom/netease/mobileanalysis/ReplyModel;->setFid(Ljava/lang/String;)V

    .line 424
    const-string v14, "c"

    invoke-virtual {v7, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v11, v14}, Lcom/netease/mobileanalysis/ReplyModel;->setContent(Ljava/lang/String;)V

    .line 425
    sget-object v14, Lcom/netease/mobileanalysis/MobileAgent;->replyModels:Ljava/util/List;

    invoke-interface {v14, v11}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_2
    .catch Lorg/json/JSONException; {:try_start_2 .. :try_end_2} :catch_0
    .catch Lorg/apache/http/client/ClientProtocolException; {:try_start_2 .. :try_end_2} :catch_1
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_3

    .line 418
    add-int/lit8 v5, v5, 0x1

    goto :goto_1

    .line 428
    .end local v6           #ja:Lorg/json/JSONArray;
    .end local v7           #jb:Lorg/json/JSONObject;
    .end local v11           #rm:Lcom/netease/mobileanalysis/ReplyModel;
    :catch_0
    move-exception v1

    .line 430
    .local v1, e:Lorg/json/JSONException;
    :try_start_3
    const-string v14, "MobileAgent"

    new-instance v15, Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Lorg/json/JSONException;->getMessage()Ljava/lang/String;

    move-result-object v16

    invoke-static/range {v16 .. v16}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v16

    invoke-direct/range {v15 .. v16}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v16, ":"

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v1}, Lorg/json/JSONException;->getStackTrace()[Ljava/lang/StackTraceElement;

    move-result-object v16

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    invoke-static {v14, v15}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_3
    .catch Lorg/apache/http/client/ClientProtocolException; {:try_start_3 .. :try_end_3} :catch_1
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_2
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_3

    goto :goto_2

    .line 440
    .end local v1           #e:Lorg/json/JSONException;
    .end local v2           #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .end local v4           #httpResponse:Lorg/apache/http/HttpResponse;
    :catch_1
    move-exception v1

    .line 442
    .local v1, e:Lorg/apache/http/client/ClientProtocolException;
    const-string v14, "MobileAgent"

    new-instance v15, Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Lorg/apache/http/client/ClientProtocolException;->getMessage()Ljava/lang/String;

    move-result-object v16

    invoke-static/range {v16 .. v16}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v16

    invoke-direct/range {v15 .. v16}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v16, ":"

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v1}, Lorg/apache/http/client/ClientProtocolException;->getStackTrace()[Ljava/lang/StackTraceElement;

    move-result-object v16

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    invoke-static {v14, v15}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 :goto_2

    .line 444
    .end local v1           #e:Lorg/apache/http/client/ClientProtocolException;
    :catch_2
    move-exception v1

    .line 446
    .local v1, e:Ljava/io/IOException;
    const-string v14, "MobileAgent"

    new-instance v15, Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/io/IOException;->getMessage()Ljava/lang/String;

    move-result-object v16

    invoke-static/range {v16 .. v16}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v16

    invoke-direct/range {v15 .. v16}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v16, ":"

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v1}, Ljava/io/IOException;->getStackTrace()[Ljava/lang/StackTraceElement;

    move-result-object v16

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    invoke-static {v14, v15}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 :goto_2

    .line 448
    .end local v1           #e:Ljava/io/IOException;
    :catch_3
    move-exception v1

    .line 450
    .local v1, e:Ljava/lang/Exception;
    const-string v14, "MobileAgent"

    new-instance v15, Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v16

    invoke-static/range {v16 .. v16}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v16

    invoke-direct/range {v15 .. v16}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v16, ":"

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v1}, Ljava/lang/Exception;->getStackTrace()[Ljava/lang/StackTraceElement;

    move-result-object v16

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    invoke-static {v14, v15}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 :goto_2
.end method

.method private static getSessionHeader(Landroid/content/Context;)Landroid/content/SharedPreferences;
    .locals 2
    .parameter "context"

    .prologue
    .line 1008
    const-string v0, "com_netease_session_header"

    const/4 v1, 0x0

    invoke-virtual {p0, v0, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    return-object v0
.end method

.method private static isNetworkAvailable(Landroid/content/Context;)Z
    .locals 7
    .parameter "context"

    .prologue
    const/4 v4, 0x1

    const/4 v3, 0x0

    .line 1140
    const-string v5, "connectivity"

    invoke-virtual {p0, v5}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/net/ConnectivityManager;

    .line 1141
    .local v0, connectivity:Landroid/net/ConnectivityManager;
    if-nez v0, :cond_1

    .line 1150
    :cond_0
    :goto_0
    return v3

    .line 1144
    :cond_1
    invoke-virtual {v0}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo;

    move-result-object v1

    .line 1145
    .local v1, info:Landroid/net/NetworkInfo;
    invoke-virtual {v1}, Landroid/net/NetworkInfo;->getTypeName()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v5

    sput-object v5, Lcom/netease/mobileanalysis/MobileAgent;->netTypeName:Ljava/lang/String;

    .line 1146
    invoke-virtual {v0, v3}, Landroid/net/ConnectivityManager;->getNetworkInfo(I)Landroid/net/NetworkInfo;

    move-result-object v5

    invoke-virtual {v5}, Landroid/net/NetworkInfo;->getState()Landroid/net/NetworkInfo$State;

    move-result-object v5

    sget-object v6, Landroid/net/NetworkInfo$State;->CONNECTED:Landroid/net/NetworkInfo$State;

    if-ne v5, v6, :cond_2

    move v3, v4

    .line 1147
    goto :goto_0

    .line 1149
    :cond_2
    invoke-virtual {v0, v4}, Landroid/net/ConnectivityManager;->getNetworkInfo(I)Landroid/net/NetworkInfo;

    move-result-object v2

    .line 1150
    .local v2, wifi_network:Landroid/net/NetworkInfo;
    invoke-virtual {v2}, Landroid/net/NetworkInfo;->getState()Landroid/net/NetworkInfo$State;

    move-result-object v5

    sget-object v6, Landroid/net/NetworkInfo$State;->CONNECTED:Landroid/net/NetworkInfo$State;

    if-ne v5, v6, :cond_0

    move v3, v4

    goto :goto_0
.end method

.method private declared-synchronized onErrorInternal(Landroid/content/Context;)V
    .locals 1
    .parameter "context"

    .prologue
    .line 546
    monitor-enter p0

    :try_start_0
    iput-object p1, p0, Lcom/netease/mobileanalysis/MobileAgent;->mContext:Landroid/content/Context;

    .line 547
    new-instance v0, Lcom/netease/mobileanalysis/MobileAgent$1;

    invoke-direct {v0, p0}, Lcom/netease/mobileanalysis/MobileAgent$1;-><init>(Lcom/netease/mobileanalysis/MobileAgent;)V

    .line 555
    invoke-virtual {v0}, Lcom/netease/mobileanalysis/MobileAgent$1;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 557
    monitor-exit p0

    return-void

    .line 546
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method private declared-synchronized onErrorInternal(Landroid/content/Context;Ljava/lang/String;)V
    .locals 2
    .parameter "context"
    .parameter "error"

    .prologue
    .line 565
    monitor-enter p0

    :try_start_0
    invoke-virtual {p2}, Ljava/lang/String;->length()I

    move-result v0

    const/16 v1, 0x2800

    if-le v0, v1, :cond_0

    .line 566
    const-string v0, "MobileAgent"

    const-string v1, "errorMsg too long."

    invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 570
    :goto_0
    monitor-exit p0

    return-void

    .line 569
    :cond_0
    :try_start_1
    invoke-direct {p0, p1, p2}, Lcom/netease/mobileanalysis/MobileAgent;->emitErrorReport(Landroid/content/Context;Ljava/lang/String;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    .line 565
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method private declared-synchronized onStartSessionInternal(Landroid/content/Context;)V
    .locals 5
    .parameter "context"

    .prologue
    .line 516
    monitor-enter p0

    :try_start_0
    invoke-static {p1}, Lcom/netease/mobileanalysis/MobileAgent;->getSessionHeader(Landroid/content/Context;)Landroid/content/SharedPreferences;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result-object v1

    .line 517
    .local v1, state_preferences:Landroid/content/SharedPreferences;
    if-nez v1, :cond_0

    .line 522
    :goto_0
    monitor-exit p0

    return-void

    .line 520
    :cond_0
    :try_start_1
    invoke-direct {p0, p1, v1}, Lcom/netease/mobileanalysis/MobileAgent;->startSession(Landroid/content/Context;Landroid/content/SharedPreferences;)Ljava/lang/String;

    move-result-object v0

    .line 521
    .local v0, session_id:Ljava/lang/String;
    const-string v2, "MobileAgent"

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "Start new session: "

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    .line 516
    .end local v0           #session_id:Ljava/lang/String;
    .end local v1           #state_preferences:Landroid/content/SharedPreferences;
    :catchall_0
    move-exception v2

    monitor-exit p0

    throw v2
.end method

.method public static sendAddedFeedBack(Ljava/lang/String;Ljava/lang/String;)I
    .locals 1
    .parameter "feedbackId"
    .parameter "feedBackContent"

    .prologue
    .line 121
    sget-object v0, Lcom/netease/mobileanalysis/MobileAgent;->agent:Lcom/netease/mobileanalysis/MobileAgent;

    invoke-direct {v0, p0, p1}, Lcom/netease/mobileanalysis/MobileAgent;->sendAddedFeedBackLocal(Ljava/lang/String;Ljava/lang/String;)Z

    .line 122
    sget v0, Lcom/netease/mobileanalysis/MobileAgent;->feedBackResultCode:I

    return v0
.end method

.method private sendAddedFeedBackLocal(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 13
    .parameter "feedbackId"
    .parameter "feedBackContent"

    .prologue
    const/16 v12, 0xc8

    .line 223
    const/4 v7, 0x0

    .line 224
    .local v7, result:Z
    sget-object v9, Lcom/netease/mobileanalysis/MobileAgent;->appid:Ljava/lang/String;

    if-eqz v9, :cond_0

    sget-object v9, Lcom/netease/mobileanalysis/MobileAgent;->appid:Ljava/lang/String;

    const-string v10, ""

    invoke-virtual {v9, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_1

    .line 226
    :cond_0
    const-string v9, "MobileAgent"

    const-string v10, "appid is null,please use method sessionStart before use other method"

    invoke-static {v9, v10}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    move v9, v7

    .line 296
    :goto_0
    return v9

    .line 229
    :cond_1
    if-eqz p1, :cond_2

    if-eqz p2, :cond_2

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v9

    const/16 v10, 0x10

    if-eq v9, v10, :cond_3

    .line 231
    :cond_2
    const-string v9, "MobileAgent"

    const-string v10, "feedbackId is not null and feedbackId\'s length is 16 and feedBackContent is not null"

    invoke-static {v9, v10}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    move v9, v7

    .line 232
    goto :goto_0

    .line 234
    :cond_3
    const/4 v8, 0x0

    .line 235
    .local v8, resultTemp:Ljava/lang/String;
    new-instance v3, Lorg/apache/http/client/methods/HttpPost;

    const-string v9, "http://m.analytics.126.net/fb/feedback"

    invoke-direct {v3, v9}, Lorg/apache/http/client/methods/HttpPost;-><init>(Ljava/lang/String;)V

    .line 236
    .local v3, httpRequest:Lorg/apache/http/client/methods/HttpPost;
    new-instance v6, Ljava/util/ArrayList;

    invoke-direct {v6}, Ljava/util/ArrayList;-><init>()V

    .line 237
    .local v6, params:Ljava/util/List;,"Ljava/util/List<Lorg/apache/http/NameValuePair;>;"
    new-instance v9, Lorg/apache/http/message/BasicNameValuePair;

    const-string v10, "id"

    sget-object v11, Lcom/netease/mobileanalysis/MobileAgent;->appid:Ljava/lang/String;

    invoke-direct {v9, v10, v11}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-interface {v6, v9}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 238
    new-instance v9, Lorg/apache/http/message/BasicNameValuePair;

    const-string v10, "fid"

    invoke-direct {v9, v10, p1}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-interface {v6, v9}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 239
    new-instance v9, Lorg/apache/http/message/BasicNameValuePair;

    const-string v10, "c"

    invoke-direct {v9, v10, p2}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-interface {v6, v9}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 240
    const/4 v1, 0x0

    .line 244
    .local v1, httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    :try_start_0
    new-instance v9, Lorg/apache/http/client/entity/UrlEncodedFormEntity;

    const-string v10, "UTF-8"

    invoke-direct {v9, v6, v10}, Lorg/apache/http/client/entity/UrlEncodedFormEntity;-><init>(Ljava/util/List;Ljava/lang/String;)V

    invoke-virtual {v3, v9}, Lorg/apache/http/client/methods/HttpPost;->setEntity(Lorg/apache/http/HttpEntity;)V

    .line 246
    new-instance v2, Lorg/apache/http/impl/client/DefaultHttpClient;

    invoke-direct {v2}, Lorg/apache/http/impl/client/DefaultHttpClient;-><init>()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0
    .catch Lorg/apache/http/client/ClientProtocolException; {:try_start_0 .. :try_end_0} :catch_6
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_5
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_3

    .line 248
    .end local v1           #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .local v2, httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    :try_start_1
    invoke-virtual {v2}, Lorg/apache/http/impl/client/DefaultHttpClient;->getParams()Lorg/apache/http/params/HttpParams;

    move-result-object v9

    const-string v10, "http.connection.timeout"

    const/16 v11, 0x3a98

    invoke-static {v11}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v11

    invoke-interface {v9, v10, v11}, Lorg/apache/http/params/HttpParams;->setParameter(Ljava/lang/String;Ljava/lang/Object;)Lorg/apache/http/params/HttpParams;

    .line 250
    invoke-virtual {v2}, Lorg/apache/http/impl/client/DefaultHttpClient;->getParams()Lorg/apache/http/params/HttpParams;

    move-result-object v9

    const-string v10, "http.socket.timeout"

    const/16 v11, 0x3a98

    invoke-static {v11}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v11

    invoke-interface {v9, v10, v11}, Lorg/apache/http/params/HttpParams;->setParameter(Ljava/lang/String;Ljava/lang/Object;)Lorg/apache/http/params/HttpParams;

    .line 251
    invoke-virtual {v2, v3}, Lorg/apache/http/impl/client/DefaultHttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object v4

    .line 253
    .local v4, httpResponse:Lorg/apache/http/HttpResponse;
    invoke-interface {v4}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object v9

    invoke-interface {v9}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result v9

    if-ne v9, v12, :cond_9

    .line 256
    invoke-interface {v4}, Lorg/apache/http/HttpResponse;->getEntity()Lorg/apache/http/HttpEntity;

    move-result-object v9

    invoke-static {v9}, Lorg/apache/http/util/EntityUtils;->toString(Lorg/apache/http/HttpEntity;)Ljava/lang/String;
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1
    .catch Lorg/apache/http/client/ClientProtocolException; {:try_start_1 .. :try_end_1} :catch_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_2
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_4

    move-result-object v8

    .line 257
    if-eqz v8, :cond_4

    .line 260
    :try_start_2
    new-instance v5, Lorg/json/JSONObject;

    invoke-direct {v5, v8}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 261
    .local v5, jb:Lorg/json/JSONObject;
    const-string v9, "s"

    invoke-virtual {v5, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    .line 262
    const-string v9, "ok"

    invoke-virtual {v8, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_7

    .line 264
    const/4 v7, 0x1

    .line 265
    const/16 v9, 0xc8

    sput v9, Lcom/netease/mobileanalysis/MobileAgent;->feedBackResultCode:I
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1
    .catch Lorg/json/JSONException; {:try_start_2 .. :try_end_2} :catch_0
    .catch Lorg/apache/http/client/ClientProtocolException; {:try_start_2 .. :try_end_2} :catch_1
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_4

    .line 291
    .end local v5           #jb:Lorg/json/JSONObject;
    :cond_4
    :goto_1
    if-eqz v2, :cond_5

    .line 293
    invoke-virtual {v2}, Lorg/apache/http/impl/client/DefaultHttpClient;->getConnectionManager()Lorg/apache/http/conn/ClientConnectionManager;

    move-result-object v9

    invoke-interface {v9}, Lorg/apache/http/conn/ClientConnectionManager;->shutdown()V

    :cond_5
    move-object v1, v2

    .end local v2           #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .end local v4           #httpResponse:Lorg/apache/http/HttpResponse;
    .restart local v1       #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    :cond_6
    :goto_2
    move v9, v7

    .line 296
    goto/16 :goto_0

    .line 268
    .end local v1           #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .restart local v2       #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .restart local v4       #httpResponse:Lorg/apache/http/HttpResponse;
    .restart local v5       #jb:Lorg/json/JSONObject;
    :cond_7
    :try_start_3
    const-string v9, "MobileAgent"

    const-string v10, "sendAddedFeedBack\'s result is error"

    invoke-static {v9, v10}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 269
    const/16 v9, 0xcb

    sput v9, Lcom/netease/mobileanalysis/MobileAgent;->feedBackResultCode:I
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_1
    .catch Lorg/json/JSONException; {:try_start_3 .. :try_end_3} :catch_0
    .catch Lorg/apache/http/client/ClientProtocolException; {:try_start_3 .. :try_end_3} :catch_1
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_2
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_4

    .line 291
    if-eqz v2, :cond_8

    .line 293
    invoke-virtual {v2}, Lorg/apache/http/impl/client/DefaultHttpClient;->getConnectionManager()Lorg/apache/http/conn/ClientConnectionManager;

    move-result-object v9

    invoke-interface {v9}, Lorg/apache/http/conn/ClientConnectionManager;->shutdown()V

    .line 270
    :cond_8
    const/4 v9, 0x0

    goto/16 :goto_0

    .line 272
    .end local v5           #jb:Lorg/json/JSONObject;
    :catch_0
    move-exception v0

    .line 273
    .local v0, e:Lorg/json/JSONException;
    :try_start_4
    const-string v9, "MobileAgent"

    new-instance v10, Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Lorg/json/JSONException;->getMessage()Ljava/lang/String;

    move-result-object v11

    invoke-static {v11}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v11

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v11, ":"

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v0}, Lorg/json/JSONException;->getStackTrace()[Ljava/lang/StackTraceElement;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_1
    .catch Lorg/apache/http/client/ClientProtocolException; {:try_start_4 .. :try_end_4} :catch_1
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_2
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_4

    goto :goto_1

    .line 282
    .end local v0           #e:Lorg/json/JSONException;
    .end local v4           #httpResponse:Lorg/apache/http/HttpResponse;
    :catch_1
    move-exception v0

    move-object v1, v2

    .line 283
    .end local v2           #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .local v0, e:Lorg/apache/http/client/ClientProtocolException;
    .restart local v1       #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    :goto_3
    :try_start_5
    const-string v9, "MobileAgent"

    new-instance v10, Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Lorg/apache/http/client/ClientProtocolException;->getMessage()Ljava/lang/String;

    move-result-object v11

    invoke-static {v11}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v11

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v11, ":"

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v0}, Lorg/apache/http/client/ClientProtocolException;->getStackTrace()[Ljava/lang/StackTraceElement;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    .line 291
    if-eqz v1, :cond_6

    .line 293
    invoke-virtual {v1}, Lorg/apache/http/impl/client/DefaultHttpClient;->getConnectionManager()Lorg/apache/http/conn/ClientConnectionManager;

    move-result-object v9

    invoke-interface {v9}, Lorg/apache/http/conn/ClientConnectionManager;->shutdown()V

    goto :goto_2

    .line 279
    .end local v0           #e:Lorg/apache/http/client/ClientProtocolException;
    .end local v1           #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .restart local v2       #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .restart local v4       #httpResponse:Lorg/apache/http/HttpResponse;
    :cond_9
    const/16 v9, 0xc9

    :try_start_6
    sput v9, Lcom/netease/mobileanalysis/MobileAgent;->feedBackResultCode:I
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_1
    .catch Lorg/apache/http/client/ClientProtocolException; {:try_start_6 .. :try_end_6} :catch_1
    .catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_2
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_4

    goto :goto_1

    .line 285
    .end local v4           #httpResponse:Lorg/apache/http/HttpResponse;
    :catch_2
    move-exception v0

    move-object v1, v2

    .line 286
    .end local v2           #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .local v0, e:Ljava/io/IOException;
    .restart local v1       #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    :goto_4
    :try_start_7
    const-string v9, "MobileAgent"

    new-instance v10, Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/io/IOException;->getMessage()Ljava/lang/String;

    move-result-object v11

    invoke-static {v11}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v11

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v11, ":"

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v0}, Ljava/io/IOException;->getStackTrace()[Ljava/lang/StackTraceElement;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_7
    .catchall {:try_start_7 .. :try_end_7} :catchall_0

    .line 291
    if-eqz v1, :cond_6

    .line 293
    invoke-virtual {v1}, Lorg/apache/http/impl/client/DefaultHttpClient;->getConnectionManager()Lorg/apache/http/conn/ClientConnectionManager;

    move-result-object v9

    invoke-interface {v9}, Lorg/apache/http/conn/ClientConnectionManager;->shutdown()V

    goto/16 :goto_2

    .line 288
    .end local v0           #e:Ljava/io/IOException;
    :catch_3
    move-exception v0

    .line 289
    .local v0, e:Ljava/lang/Exception;
    :goto_5
    :try_start_8
    const-string v9, "MobileAgent"

    new-instance v10, Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v11

    invoke-static {v11}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v11

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v11, ":"

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v0}, Ljava/lang/Exception;->getStackTrace()[Ljava/lang/StackTraceElement;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_8
    .catchall {:try_start_8 .. :try_end_8} :catchall_0

    .line 291
    if-eqz v1, :cond_6

    .line 293
    invoke-virtual {v1}, Lorg/apache/http/impl/client/DefaultHttpClient;->getConnectionManager()Lorg/apache/http/conn/ClientConnectionManager;

    move-result-object v9

    invoke-interface {v9}, Lorg/apache/http/conn/ClientConnectionManager;->shutdown()V

    goto/16 :goto_2

    .line 290
    .end local v0           #e:Ljava/lang/Exception;
    :catchall_0
    move-exception v9

    .line 291
    :goto_6
    if-eqz v1, :cond_a

    .line 293
    invoke-virtual {v1}, Lorg/apache/http/impl/client/DefaultHttpClient;->getConnectionManager()Lorg/apache/http/conn/ClientConnectionManager;

    move-result-object v10

    invoke-interface {v10}, Lorg/apache/http/conn/ClientConnectionManager;->shutdown()V

    .line 295
    :cond_a
    throw v9

    .line 290
    .end local v1           #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .restart local v2       #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    :catchall_1
    move-exception v9

    move-object v1, v2

    .end local v2           #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .restart local v1       #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    goto :goto_6

    .line 288
    .end local v1           #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .restart local v2       #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    :catch_4
    move-exception v0

    move-object v1, v2

    .end local v2           #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .restart local v1       #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    goto :goto_5

    .line 285
    :catch_5
    move-exception v0

    goto :goto_4

    .line 282
    :catch_6
    move-exception v0

    goto/16 :goto_3
.end method

.method private static sendMessage(Lorg/json/JSONArray;)Z
    .locals 9
    .parameter "message"

    .prologue
    const/4 v6, 0x0

    .line 816
    new-instance v2, Lorg/apache/http/client/methods/HttpPost;

    const-string v7, "http://m.analytics.126.net/news/c"

    invoke-direct {v2, v7}, Lorg/apache/http/client/methods/HttpPost;-><init>(Ljava/lang/String;)V

    .line 817
    .local v2, httppost:Lorg/apache/http/client/methods/HttpPost;
    new-instance v3, Lorg/apache/http/params/BasicHttpParams;

    invoke-direct {v3}, Lorg/apache/http/params/BasicHttpParams;-><init>()V

    .line 818
    .local v3, params:Lorg/apache/http/params/HttpParams;
    const/16 v7, 0xbb8

    invoke-static {v3, v7}, Lorg/apache/http/params/HttpConnectionParams;->setConnectionTimeout(Lorg/apache/http/params/HttpParams;I)V

    .line 819
    const/16 v7, 0x1388

    invoke-static {v3, v7}, Lorg/apache/http/params/HttpConnectionParams;->setSoTimeout(Lorg/apache/http/params/HttpParams;I)V

    .line 820
    new-instance v1, Lorg/apache/http/impl/client/DefaultHttpClient;

    invoke-direct {v1, v3}, Lorg/apache/http/impl/client/DefaultHttpClient;-><init>(Lorg/apache/http/params/HttpParams;)V

    .line 822
    .local v1, httpclient:Lorg/apache/http/client/HttpClient;
    :try_start_0
    new-instance v5, Lorg/apache/http/entity/StringEntity;

    invoke-virtual {p0}, Lorg/json/JSONArray;->toString()Ljava/lang/String;

    move-result-object v7

    const-string v8, "UTF-8"

    invoke-direct {v5, v7, v8}, Lorg/apache/http/entity/StringEntity;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 823
    .local v5, se:Lorg/apache/http/entity/StringEntity;
    invoke-virtual {v2, v5}, Lorg/apache/http/client/methods/HttpPost;->setEntity(Lorg/apache/http/HttpEntity;)V

    .line 824
    invoke-interface {v1, v2}, Lorg/apache/http/client/HttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object v4

    .line 825
    .local v4, response:Lorg/apache/http/HttpResponse;
    invoke-interface {v4}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object v7

    invoke-interface {v7}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result v7

    const/16 v8, 0xc8

    if-ne v7, v8, :cond_0

    .line 826
    const-string v7, "MobileAgent"

    const-string v8, "Sent message to http://m.analytics.126.net/news/c"

    invoke-static {v7, v8}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 827
    const/4 v6, 0x1

    .line 838
    .end local v4           #response:Lorg/apache/http/HttpResponse;
    .end local v5           #se:Lorg/apache/http/entity/StringEntity;
    :goto_0
    return v6

    .line 829
    .restart local v4       #response:Lorg/apache/http/HttpResponse;
    .restart local v5       #se:Lorg/apache/http/entity/StringEntity;
    :cond_0
    const-string v7, "MobileAgent"

    const-string v8, "Failed to send message."

    invoke-static {v7, v8}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_0
    .catch Lorg/apache/http/client/ClientProtocolException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1

    goto :goto_0

    .line 831
    .end local v4           #response:Lorg/apache/http/HttpResponse;
    .end local v5           #se:Lorg/apache/http/entity/StringEntity;
    :catch_0
    move-exception v0

    .line 832
    .local v0, e:Lorg/apache/http/client/ClientProtocolException;
    const-string v7, "MobileAgent"

    const-string v8, "ClientProtocolException,Failed to send message."

    invoke-static {v7, v8}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0

    .line 834
    .end local v0           #e:Lorg/apache/http/client/ClientProtocolException;
    :catch_1
    move-exception v0

    .line 835
    .local v0, e:Ljava/io/IOException;
    const-string v7, "MobileAgent"

    invoke-virtual {p0}, Lorg/json/JSONArray;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-static {v7, v8}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 836
    const-string v7, "MobileAgent"

    const-string v8, "IOException,Failed to send message."

    invoke-static {v7, v8}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0
.end method

.method public static sendNewFeedBack(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .locals 1
    .parameter "userEmail"
    .parameter "feecBack"

    .prologue
    .line 101
    sget-object v0, Lcom/netease/mobileanalysis/MobileAgent;->agent:Lcom/netease/mobileanalysis/MobileAgent;

    invoke-direct {v0, p0, p1}, Lcom/netease/mobileanalysis/MobileAgent;->sendNewFeedBackLocal(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    .line 102
    sget-object v0, Lcom/netease/mobileanalysis/MobileAgent;->fid:Ljava/lang/String;

    return-object v0
.end method

.method private sendNewFeedBackLocal(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .locals 11
    .parameter "userEmail"
    .parameter "feedBackContent"

    .prologue
    .line 132
    sget-object v8, Lcom/netease/mobileanalysis/MobileAgent;->appid:Ljava/lang/String;

    if-eqz v8, :cond_0

    sget-object v8, Lcom/netease/mobileanalysis/MobileAgent;->appid:Ljava/lang/String;

    const-string v9, ""

    invoke-virtual {v8, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_1

    .line 134
    :cond_0
    const-string v8, ""

    .line 213
    :goto_0
    return-object v8

    .line 136
    :cond_1
    if-nez p2, :cond_2

    .line 138
    const-string v8, ""

    goto :goto_0

    .line 140
    :cond_2
    const/4 v7, 0x0

    .line 141
    .local v7, result:Ljava/lang/String;
    if-nez p1, :cond_3

    .line 143
    const-string v8, "MobileAgent"

    const-string v9, "userEmail is null"

    invoke-static {v8, v9}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 144
    const-string p1, ""

    .line 147
    :cond_3
    new-instance v3, Lorg/apache/http/client/methods/HttpPost;

    const-string v8, "http://m.analytics.126.net/fb/feedback"

    invoke-direct {v3, v8}, Lorg/apache/http/client/methods/HttpPost;-><init>(Ljava/lang/String;)V

    .line 148
    .local v3, httpRequest:Lorg/apache/http/client/methods/HttpPost;
    new-instance v6, Ljava/util/ArrayList;

    invoke-direct {v6}, Ljava/util/ArrayList;-><init>()V

    .line 149
    .local v6, params:Ljava/util/List;,"Ljava/util/List<Lorg/apache/http/NameValuePair;>;"
    new-instance v8, Lorg/apache/http/message/BasicNameValuePair;

    const-string v9, "id"

    sget-object v10, Lcom/netease/mobileanalysis/MobileAgent;->appid:Ljava/lang/String;

    invoke-direct {v8, v9, v10}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-interface {v6, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 150
    new-instance v8, Lorg/apache/http/message/BasicNameValuePair;

    const-string v9, "u"

    sget-object v10, Lcom/netease/mobileanalysis/MobileAgent;->imei:Ljava/lang/String;

    invoke-direct {v8, v9, v10}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-interface {v6, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 151
    new-instance v8, Lorg/apache/http/message/BasicNameValuePair;

    const-string v9, "v"

    sget-object v10, Lcom/netease/mobileanalysis/MobileAgent;->version:Ljava/lang/String;

    invoke-direct {v8, v9, v10}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-interface {v6, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 152
    new-instance v8, Lorg/apache/http/message/BasicNameValuePair;

    const-string v9, "o"

    sget-object v10, Lcom/netease/mobileanalysis/MobileAgent;->system_version:Ljava/lang/String;

    invoke-direct {v8, v9, v10}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-interface {v6, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 153
    new-instance v8, Lorg/apache/http/message/BasicNameValuePair;

    const-string v9, "mid"

    sget-object v10, Lcom/netease/mobileanalysis/MobileAgent;->mid:Ljava/lang/String;

    invoke-direct {v8, v9, v10}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-interface {v6, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 154
    new-instance v8, Lorg/apache/http/message/BasicNameValuePair;

    const-string v9, "n"

    invoke-direct {v8, v9, p1}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-interface {v6, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 155
    new-instance v8, Lorg/apache/http/message/BasicNameValuePair;

    const-string v9, "c"

    invoke-direct {v8, v9, p2}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-interface {v6, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 156
    new-instance v8, Lorg/apache/http/message/BasicNameValuePair;

    const-string v9, "m"

    sget-object v10, Lcom/netease/mobileanalysis/MobileAgent;->system_model:Ljava/lang/String;

    invoke-direct {v8, v9, v10}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-interface {v6, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 157
    const/4 v1, 0x0

    .line 161
    .local v1, httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    :try_start_0
    new-instance v8, Lorg/apache/http/client/entity/UrlEncodedFormEntity;

    const-string v9, "UTF-8"

    invoke-direct {v8, v6, v9}, Lorg/apache/http/client/entity/UrlEncodedFormEntity;-><init>(Ljava/util/List;Ljava/lang/String;)V

    invoke-virtual {v3, v8}, Lorg/apache/http/client/methods/HttpPost;->setEntity(Lorg/apache/http/HttpEntity;)V

    .line 163
    new-instance v2, Lorg/apache/http/impl/client/DefaultHttpClient;

    invoke-direct {v2}, Lorg/apache/http/impl/client/DefaultHttpClient;-><init>()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0
    .catch Lorg/apache/http/client/ClientProtocolException; {:try_start_0 .. :try_end_0} :catch_6
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_5
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_3

    .line 165
    .end local v1           #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .local v2, httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    :try_start_1
    invoke-virtual {v2}, Lorg/apache/http/impl/client/DefaultHttpClient;->getParams()Lorg/apache/http/params/HttpParams;

    move-result-object v8

    const-string v9, "http.connection.timeout"

    const/16 v10, 0x3a98

    invoke-static {v10}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v10

    invoke-interface {v8, v9, v10}, Lorg/apache/http/params/HttpParams;->setParameter(Ljava/lang/String;Ljava/lang/Object;)Lorg/apache/http/params/HttpParams;

    .line 167
    invoke-virtual {v2}, Lorg/apache/http/impl/client/DefaultHttpClient;->getParams()Lorg/apache/http/params/HttpParams;

    move-result-object v8

    const-string v9, "http.socket.timeout"

    const/16 v10, 0x3a98

    invoke-static {v10}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v10

    invoke-interface {v8, v9, v10}, Lorg/apache/http/params/HttpParams;->setParameter(Ljava/lang/String;Ljava/lang/Object;)Lorg/apache/http/params/HttpParams;

    .line 168
    invoke-virtual {v2, v3}, Lorg/apache/http/impl/client/DefaultHttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object v4

    .line 170
    .local v4, httpResponse:Lorg/apache/http/HttpResponse;
    invoke-interface {v4}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object v8

    invoke-interface {v8}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result v8

    const/16 v9, 0xc8

    if-ne v8, v9, :cond_8

    .line 173
    invoke-interface {v4}, Lorg/apache/http/HttpResponse;->getEntity()Lorg/apache/http/HttpEntity;

    move-result-object v8

    invoke-static {v8}, Lorg/apache/http/util/EntityUtils;->toString(Lorg/apache/http/HttpEntity;)Ljava/lang/String;
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1
    .catch Lorg/apache/http/client/ClientProtocolException; {:try_start_1 .. :try_end_1} :catch_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_2
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_4

    move-result-object v7

    .line 174
    if-eqz v7, :cond_4

    .line 178
    :try_start_2
    new-instance v5, Lorg/json/JSONObject;

    invoke-direct {v5, v7}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 179
    .local v5, jb:Lorg/json/JSONObject;
    const-string v8, "fid"

    invoke-virtual {v5, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    sput-object v8, Lcom/netease/mobileanalysis/MobileAgent;->fid:Ljava/lang/String;

    .line 180
    sget-object v8, Lcom/netease/mobileanalysis/MobileAgent;->fid:Ljava/lang/String;

    const-string v9, "err"

    invoke-virtual {v8, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_4

    .line 182
    const-string v8, ""

    sput-object v8, Lcom/netease/mobileanalysis/MobileAgent;->fid:Ljava/lang/String;
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1
    .catch Lorg/json/JSONException; {:try_start_2 .. :try_end_2} :catch_0
    .catch Lorg/apache/http/client/ClientProtocolException; {:try_start_2 .. :try_end_2} :catch_1
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_4

    .line 204
    .end local v5           #jb:Lorg/json/JSONObject;
    :cond_4
    :goto_1
    if-eqz v2, :cond_5

    .line 206
    invoke-virtual {v2}, Lorg/apache/http/impl/client/DefaultHttpClient;->getConnectionManager()Lorg/apache/http/conn/ClientConnectionManager;

    move-result-object v8

    invoke-interface {v8}, Lorg/apache/http/conn/ClientConnectionManager;->shutdown()V

    :cond_5
    move-object v1, v2

    .line 209
    .end local v2           #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .end local v4           #httpResponse:Lorg/apache/http/HttpResponse;
    .restart local v1       #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    :cond_6
    :goto_2
    sget-object v8, Lcom/netease/mobileanalysis/MobileAgent;->fid:Ljava/lang/String;

    if-nez v8, :cond_7

    .line 211
    const-string v8, ""

    sput-object v8, Lcom/netease/mobileanalysis/MobileAgent;->fid:Ljava/lang/String;

    .line 213
    :cond_7
    sget-object v8, Lcom/netease/mobileanalysis/MobileAgent;->fid:Ljava/lang/String;

    goto/16 :goto_0

    .line 184
    .end local v1           #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .restart local v2       #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .restart local v4       #httpResponse:Lorg/apache/http/HttpResponse;
    :catch_0
    move-exception v0

    .line 186
    .local v0, e:Lorg/json/JSONException;
    :try_start_3
    const-string v8, "MobileAgent"

    new-instance v9, Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Lorg/json/JSONException;->getMessage()Ljava/lang/String;

    move-result-object v10

    invoke-static {v10}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v10

    invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v10, ":"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v0}, Lorg/json/JSONException;->getStackTrace()[Ljava/lang/StackTraceElement;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-static {v8, v9}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_1
    .catch Lorg/apache/http/client/ClientProtocolException; {:try_start_3 .. :try_end_3} :catch_1
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_2
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_4

    goto :goto_1

    .line 195
    .end local v0           #e:Lorg/json/JSONException;
    .end local v4           #httpResponse:Lorg/apache/http/HttpResponse;
    :catch_1
    move-exception v0

    move-object v1, v2

    .line 196
    .end local v2           #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .local v0, e:Lorg/apache/http/client/ClientProtocolException;
    .restart local v1       #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    :goto_3
    :try_start_4
    const-string v8, "MobileAgent"

    new-instance v9, Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Lorg/apache/http/client/ClientProtocolException;->getMessage()Ljava/lang/String;

    move-result-object v10

    invoke-static {v10}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v10

    invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v10, ":"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v0}, Lorg/apache/http/client/ClientProtocolException;->getStackTrace()[Ljava/lang/StackTraceElement;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-static {v8, v9}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    .line 204
    if-eqz v1, :cond_6

    .line 206
    invoke-virtual {v1}, Lorg/apache/http/impl/client/DefaultHttpClient;->getConnectionManager()Lorg/apache/http/conn/ClientConnectionManager;

    move-result-object v8

    invoke-interface {v8}, Lorg/apache/http/conn/ClientConnectionManager;->shutdown()V

    goto :goto_2

    .line 192
    .end local v0           #e:Lorg/apache/http/client/ClientProtocolException;
    .end local v1           #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .restart local v2       #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .restart local v4       #httpResponse:Lorg/apache/http/HttpResponse;
    :cond_8
    :try_start_5
    invoke-virtual {v2}, Lorg/apache/http/impl/client/DefaultHttpClient;->getConnectionManager()Lorg/apache/http/conn/ClientConnectionManager;

    move-result-object v8

    invoke-interface {v8}, Lorg/apache/http/conn/ClientConnectionManager;->shutdown()V
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_1
    .catch Lorg/apache/http/client/ClientProtocolException; {:try_start_5 .. :try_end_5} :catch_1
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_2
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_4

    goto :goto_1

    .line 198
    .end local v4           #httpResponse:Lorg/apache/http/HttpResponse;
    :catch_2
    move-exception v0

    move-object v1, v2

    .line 199
    .end local v2           #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .local v0, e:Ljava/io/IOException;
    .restart local v1       #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    :goto_4
    :try_start_6
    const-string v8, "MobileAgent"

    new-instance v9, Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/io/IOException;->getMessage()Ljava/lang/String;

    move-result-object v10

    invoke-static {v10}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v10

    invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v10, ":"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v0}, Ljava/io/IOException;->getStackTrace()[Ljava/lang/StackTraceElement;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-static {v8, v9}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_0

    .line 204
    if-eqz v1, :cond_6

    .line 206
    invoke-virtual {v1}, Lorg/apache/http/impl/client/DefaultHttpClient;->getConnectionManager()Lorg/apache/http/conn/ClientConnectionManager;

    move-result-object v8

    invoke-interface {v8}, Lorg/apache/http/conn/ClientConnectionManager;->shutdown()V

    goto/16 :goto_2

    .line 201
    .end local v0           #e:Ljava/io/IOException;
    :catch_3
    move-exception v0

    .line 202
    .local v0, e:Ljava/lang/Exception;
    :goto_5
    :try_start_7
    const-string v8, "MobileAgent"

    new-instance v9, Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v10

    invoke-static {v10}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v10

    invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v10, ":"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v0}, Ljava/lang/Exception;->getStackTrace()[Ljava/lang/StackTraceElement;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-static {v8, v9}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_7
    .catchall {:try_start_7 .. :try_end_7} :catchall_0

    .line 204
    if-eqz v1, :cond_6

    .line 206
    invoke-virtual {v1}, Lorg/apache/http/impl/client/DefaultHttpClient;->getConnectionManager()Lorg/apache/http/conn/ClientConnectionManager;

    move-result-object v8

    invoke-interface {v8}, Lorg/apache/http/conn/ClientConnectionManager;->shutdown()V

    goto/16 :goto_2

    .line 203
    .end local v0           #e:Ljava/lang/Exception;
    :catchall_0
    move-exception v8

    .line 204
    :goto_6
    if-eqz v1, :cond_9

    .line 206
    invoke-virtual {v1}, Lorg/apache/http/impl/client/DefaultHttpClient;->getConnectionManager()Lorg/apache/http/conn/ClientConnectionManager;

    move-result-object v9

    invoke-interface {v9}, Lorg/apache/http/conn/ClientConnectionManager;->shutdown()V

    .line 208
    :cond_9
    throw v8

    .line 203
    .end local v1           #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .restart local v2       #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    :catchall_1
    move-exception v8

    move-object v1, v2

    .end local v2           #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .restart local v1       #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    goto :goto_6

    .line 201
    .end local v1           #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .restart local v2       #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    :catch_4
    move-exception v0

    move-object v1, v2

    .end local v2           #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .restart local v1       #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    goto :goto_5

    .line 198
    :catch_5
    move-exception v0

    goto :goto_4

    .line 195
    :catch_6
    move-exception v0

    goto/16 :goto_3
.end method

.method private sendReceiveMessage(Ljava/util/List;)V
    .locals 16
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 300
    .local p1, feedbackIds:Ljava/util/List;,"Ljava/util/List<Ljava/lang/String;>;"
    if-eqz p1, :cond_0

    invoke-interface/range {p1 .. p1}, Ljava/util/List;->size()I

    move-result v13

    const/4 v14, 0x1

    if-ge v13, v14, :cond_1

    .line 371
    :cond_0
    :goto_0
    return-void

    .line 305
    :cond_1
    new-instance v5, Lorg/apache/http/client/methods/HttpPost;

    const-string v13, "http://m.analytics.126.net/fb/receive"

    invoke-direct {v5, v13}, Lorg/apache/http/client/methods/HttpPost;-><init>(Ljava/lang/String;)V

    .line 306
    .local v5, httpRequest:Lorg/apache/http/client/methods/HttpPost;
    new-instance v10, Ljava/util/ArrayList;

    invoke-direct {v10}, Ljava/util/ArrayList;-><init>()V

    .line 307
    .local v10, params:Ljava/util/List;,"Ljava/util/List<Lorg/apache/http/NameValuePair;>;"
    const-string v2, ""

    .line 308
    .local v2, fids:Ljava/lang/String;
    const/4 v7, 0x0

    .local v7, i:I
    invoke-interface/range {p1 .. p1}, Ljava/util/List;->size()I

    move-result v9

    .local v9, n:I
    :goto_1
    if-lt v7, v9, :cond_4

    .line 319
    new-instance v13, Lorg/apache/http/message/BasicNameValuePair;

    const-string v14, "fids"

    invoke-direct {v13, v14, v2}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-interface {v10, v13}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 320
    const/4 v11, 0x0

    .line 321
    .local v11, result:Ljava/lang/String;
    const/4 v3, 0x0

    .line 325
    .local v3, httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    :try_start_0
    new-instance v13, Lorg/apache/http/client/entity/UrlEncodedFormEntity;

    const-string v14, "UTF-8"

    invoke-direct {v13, v10, v14}, Lorg/apache/http/client/entity/UrlEncodedFormEntity;-><init>(Ljava/util/List;Ljava/lang/String;)V

    invoke-virtual {v5, v13}, Lorg/apache/http/client/methods/HttpPost;->setEntity(Lorg/apache/http/HttpEntity;)V

    .line 327
    new-instance v4, Lorg/apache/http/impl/client/DefaultHttpClient;

    invoke-direct {v4}, Lorg/apache/http/impl/client/DefaultHttpClient;-><init>()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_2

    .line 329
    .end local v3           #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .local v4, httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    :try_start_1
    invoke-virtual {v4}, Lorg/apache/http/impl/client/DefaultHttpClient;->getParams()Lorg/apache/http/params/HttpParams;

    move-result-object v13

    const-string v14, "http.connection.timeout"

    const/16 v15, 0x3a98

    invoke-static {v15}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v15

    invoke-interface {v13, v14, v15}, Lorg/apache/http/params/HttpParams;->setParameter(Ljava/lang/String;Ljava/lang/Object;)Lorg/apache/http/params/HttpParams;

    .line 331
    invoke-virtual {v4}, Lorg/apache/http/impl/client/DefaultHttpClient;->getParams()Lorg/apache/http/params/HttpParams;

    move-result-object v13

    const-string v14, "http.socket.timeout"

    const/16 v15, 0x3a98

    invoke-static {v15}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v15

    invoke-interface {v13, v14, v15}, Lorg/apache/http/params/HttpParams;->setParameter(Ljava/lang/String;Ljava/lang/Object;)Lorg/apache/http/params/HttpParams;

    .line 332
    invoke-virtual {v4, v5}, Lorg/apache/http/impl/client/DefaultHttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object v6

    .line 334
    .local v6, httpResponse:Lorg/apache/http/HttpResponse;
    invoke-interface {v6}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object v13

    invoke-interface {v13}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result v13

    const/16 v14, 0xc8

    if-ne v13, v14, :cond_7

    .line 337
    invoke-interface {v6}, Lorg/apache/http/HttpResponse;->getEntity()Lorg/apache/http/HttpEntity;

    move-result-object v13

    invoke-static {v13}, Lorg/apache/http/util/EntityUtils;->toString(Lorg/apache/http/HttpEntity;)Ljava/lang/String;

    move-result-object v11

    .line 338
    const-string v12, ""
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1

    .line 339
    .local v12, s:Ljava/lang/String;
    if-eqz v11, :cond_2

    .line 342
    :try_start_2
    new-instance v8, Lorg/json/JSONObject;

    invoke-direct {v8, v11}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 343
    .local v8, jb:Lorg/json/JSONObject;
    const-string v13, "s"

    invoke-virtual {v8, v13}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    .line 344
    const-string v13, "ok"

    invoke-virtual {v12, v13}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v13

    if-eqz v13, :cond_6

    .line 346
    const-string v13, "MobileAgent"

    const-string v14, "receive feedback ok"

    invoke-static {v13, v14}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0
    .catch Lorg/json/JSONException; {:try_start_2 .. :try_end_2} :catch_0
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_1

    .line 366
    .end local v8           #jb:Lorg/json/JSONObject;
    .end local v12           #s:Ljava/lang/String;
    :cond_2
    :goto_2
    if-eqz v4, :cond_3

    .line 368
    invoke-virtual {v4}, Lorg/apache/http/impl/client/DefaultHttpClient;->getConnectionManager()Lorg/apache/http/conn/ClientConnectionManager;

    move-result-object v13

    invoke-interface {v13}, Lorg/apache/http/conn/ClientConnectionManager;->shutdown()V

    :cond_3
    move-object v3, v4

    .end local v4           #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .restart local v3       #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    goto/16 :goto_0

    .line 310
    .end local v3           #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .end local v6           #httpResponse:Lorg/apache/http/HttpResponse;
    .end local v11           #result:Ljava/lang/String;
    :cond_4
    if-lez v7, :cond_5

    .line 312
    new-instance v13, Ljava/lang/StringBuilder;

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v14

    invoke-direct {v13, v14}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v14, ","

    invoke-virtual {v13, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v14

    move-object/from16 v0, p1

    invoke-interface {v0, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v13

    check-cast v13, Ljava/lang/String;

    invoke-virtual {v14, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 308
    :goto_3
    add-int/lit8 v7, v7, 0x1

    goto/16 :goto_1

    .line 316
    :cond_5
    move-object/from16 v0, p1

    invoke-interface {v0, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    .end local v2           #fids:Ljava/lang/String;
    check-cast v2, Ljava/lang/String;

    .restart local v2       #fids:Ljava/lang/String;
    goto :goto_3

    .line 350
    .restart local v4       #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .restart local v6       #httpResponse:Lorg/apache/http/HttpResponse;
    .restart local v8       #jb:Lorg/json/JSONObject;
    .restart local v11       #result:Ljava/lang/String;
    .restart local v12       #s:Ljava/lang/String;
    :cond_6
    :try_start_3
    const-string v13, "MobileAgent"

    const-string v14, "receive feedback error"

    invoke-static {v13, v14}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0
    .catch Lorg/json/JSONException; {:try_start_3 .. :try_end_3} :catch_0
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_1

    goto :goto_2

    .line 352
    .end local v8           #jb:Lorg/json/JSONObject;
    :catch_0
    move-exception v1

    .line 354
    .local v1, e:Lorg/json/JSONException;
    :try_start_4
    const-string v13, "MobileAgent"

    new-instance v14, Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Lorg/json/JSONException;->getMessage()Ljava/lang/String;

    move-result-object v15

    invoke-static {v15}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v15

    invoke-direct {v14, v15}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v15, ":"

    invoke-virtual {v14, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v14

    invoke-virtual {v1}, Lorg/json/JSONException;->getStackTrace()[Ljava/lang/StackTraceElement;

    move-result-object v15

    invoke-virtual {v14, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v14

    invoke-static {v13, v14}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_1

    goto :goto_2

    .line 362
    .end local v1           #e:Lorg/json/JSONException;
    .end local v6           #httpResponse:Lorg/apache/http/HttpResponse;
    .end local v12           #s:Ljava/lang/String;
    :catch_1
    move-exception v1

    move-object v3, v4

    .line 364
    .end local v4           #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .local v1, e:Ljava/io/IOException;
    .restart local v3       #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    :goto_4
    :try_start_5
    const-string v13, "MobileAgent"

    new-instance v14, Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/io/IOException;->getMessage()Ljava/lang/String;

    move-result-object v15

    invoke-static {v15}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v15

    invoke-direct {v14, v15}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v15, ":"

    invoke-virtual {v14, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v14

    invoke-virtual {v1}, Ljava/io/IOException;->getStackTrace()[Ljava/lang/StackTraceElement;

    move-result-object v15

    invoke-virtual {v14, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v14

    invoke-static {v13, v14}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_1

    .line 366
    if-eqz v3, :cond_0

    .line 368
    invoke-virtual {v3}, Lorg/apache/http/impl/client/DefaultHttpClient;->getConnectionManager()Lorg/apache/http/conn/ClientConnectionManager;

    move-result-object v13

    invoke-interface {v13}, Lorg/apache/http/conn/ClientConnectionManager;->shutdown()V

    goto/16 :goto_0

    .line 360
    .end local v1           #e:Ljava/io/IOException;
    .end local v3           #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .restart local v4       #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .restart local v6       #httpResponse:Lorg/apache/http/HttpResponse;
    :cond_7
    :try_start_6
    const-string v13, "MobileAgent"

    new-instance v14, Ljava/lang/StringBuilder;

    const-string v15, "response code is :"

    invoke-direct {v14, v15}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-interface {v6}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object v15

    invoke-interface {v15}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result v15

    invoke-virtual {v14, v15}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v14

    invoke-static {v13, v14}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_0
    .catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_1

    goto/16 :goto_2

    .line 365
    .end local v6           #httpResponse:Lorg/apache/http/HttpResponse;
    :catchall_0
    move-exception v13

    move-object v3, v4

    .line 366
    .end local v4           #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    .restart local v3       #httpClient:Lorg/apache/http/impl/client/DefaultHttpClient;
    :goto_5
    if-eqz v3, :cond_8

    .line 368
    invoke-virtual {v3}, Lorg/apache/http/impl/client/DefaultHttpClient;->getConnectionManager()Lorg/apache/http/conn/ClientConnectionManager;

    move-result-object v14

    invoke-interface {v14}, Lorg/apache/http/conn/ClientConnectionManager;->shutdown()V

    .line 370
    :cond_8
    throw v13

    .line 365
    :catchall_1
    move-exception v13

    goto :goto_5

    .line 362
    :catch_2
    move-exception v1

    goto :goto_4
.end method

.method public static sessionEnd(Landroid/content/Context;)V
    .locals 3
    .parameter "context"

    .prologue
    .line 461
    if-nez p0, :cond_0

    .line 462
    :try_start_0
    const-string v1, "MobileAgent"

    const-string v2, "unexpected null context"

    invoke-static {v1, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 470
    :goto_0
    return-void

    .line 466
    :cond_0
    sget-object v1, Lcom/netease/mobileanalysis/MobileAgent;->agent:Lcom/netease/mobileanalysis/MobileAgent;

    invoke-virtual {v1, p0}, Lcom/netease/mobileanalysis/MobileAgent;->onEndSessionInternal(Landroid/content/Context;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 467
    :catch_0
    move-exception v0

    .line 468
    .local v0, e:Ljava/lang/Exception;
    const-string v1, "MobileAgent"

    const-string v2, "Exception occurred in Mobclick.onRause(). "

    invoke-static {v1, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0
.end method

.method public static sessionStart(Landroid/content/Context;)V
    .locals 2
    .parameter "context"

    .prologue
    .line 84
    sget-boolean v0, Lcom/netease/mobileanalysis/MobileAgent;->isGetInfo:Z

    if-eqz v0, :cond_0

    .line 86
    invoke-static {p0}, Lcom/netease/mobileanalysis/MobileAgent;->getInfo(Landroid/content/Context;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 88
    const-string v0, "MobileAgent"

    const-string v1, "can\'t get info..."

    invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 91
    :cond_0
    sget-object v0, Lcom/netease/mobileanalysis/MobileAgent;->agent:Lcom/netease/mobileanalysis/MobileAgent;

    invoke-direct {v0, p0}, Lcom/netease/mobileanalysis/MobileAgent;->onStartSessionInternal(Landroid/content/Context;)V

    .line 92
    return-void
.end method

.method public static setEvent(Landroid/content/Context;Ljava/lang/String;)V
    .locals 1
    .parameter "context"
    .parameter "name"

    .prologue
    .line 846
    const/4 v0, 0x1

    invoke-static {p0, p1, v0}, Lcom/netease/mobileanalysis/MobileAgent;->setEvent(Landroid/content/Context;Ljava/lang/String;I)V

    .line 847
    return-void
.end method

.method public static setEvent(Landroid/content/Context;Ljava/lang/String;I)V
    .locals 0
    .parameter "context"
    .parameter "name"
    .parameter "acc"

    .prologue
    .line 855
    invoke-static {p0, p1, p1, p2}, Lcom/netease/mobileanalysis/MobileAgent;->setEvent(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;I)V

    .line 856
    return-void
.end method

.method public static setEvent(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
    .locals 1
    .parameter "context"
    .parameter "name"
    .parameter "tag"

    .prologue
    .line 864
    const/4 v0, 0x1

    invoke-static {p0, p1, p2, v0}, Lcom/netease/mobileanalysis/MobileAgent;->setEvent(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;I)V

    .line 865
    return-void
.end method

.method public static setEvent(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;I)V
    .locals 10
    .parameter "context"
    .parameter "name"
    .parameter "tag"
    .parameter "num"

    .prologue
    .line 874
    if-eqz p0, :cond_0

    if-eqz p1, :cond_0

    if-gtz p3, :cond_1

    .line 876
    :cond_0
    const-string v8, "MobileAgent"

    const-string v9, "something wrong :context==null||name==null||num<=0"

    invoke-static {v8, v9}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 952
    :goto_0
    return-void

    .line 879
    :cond_1
    invoke-static {p0}, Lcom/netease/mobileanalysis/MobileAgent;->getSessionHeader(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v6

    .line 880
    .local v6, state_preferences:Landroid/content/SharedPreferences;
    const-string v8, "session_id"

    const/4 v9, 0x0

    invoke-interface {v6, v8, v9}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 881
    .local v5, sessionid:Ljava/lang/String;
    if-nez v5, :cond_2

    .line 883
    const-string v8, "MobileAgent"

    const-string v9, "please use sessionStart first."

    invoke-static {v8, v9}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0

    .line 888
    :cond_2
    sget-object v8, Lcom/netease/mobileanalysis/MobileAgent;->bodyName:Ljava/lang/String;

    invoke-static {p0, v8}, Lcom/netease/mobileanalysis/MobileAgent;->getCachedMessageBody(Landroid/content/Context;Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v4

    .line 889
    .local v4, message:Lorg/json/JSONArray;
    if-nez v4, :cond_3

    .line 891
    new-instance v4, Lorg/json/JSONArray;

    .end local v4           #message:Lorg/json/JSONArray;
    invoke-direct {v4}, Lorg/json/JSONArray;-><init>()V

    .line 892
    .restart local v4       #message:Lorg/json/JSONArray;
    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3}, Lorg/json/JSONObject;-><init>()V

    .line 894
    .local v3, jb:Lorg/json/JSONObject;
    :try_start_0
    const-string v8, "s"

    invoke-virtual {v3, v8, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 895
    new-instance v1, Lorg/json/JSONArray;

    invoke-direct {v1}, Lorg/json/JSONArray;-><init>()V

    .line 896
    .local v1, event:Lorg/json/JSONArray;
    new-instance v7, Lorg/json/JSONObject;

    invoke-direct {v7}, Lorg/json/JSONObject;-><init>()V

    .line 897
    .local v7, tempJB:Lorg/json/JSONObject;
    const-string v8, "n"

    invoke-virtual {v7, v8, p1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 898
    const-string v8, "g"

    invoke-virtual {v7, v8, p2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 899
    const-string v8, "t"

    invoke-virtual {v7, v8, p3}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    .line 900
    invoke-virtual {v1, v7}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;

    .line 902
    const-string v8, "e"

    invoke-virtual {v3, v8, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 903
    invoke-virtual {v4, v3}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;

    .line 904
    sget-object v8, Lcom/netease/mobileanalysis/MobileAgent;->bodyName:Ljava/lang/String;

    invoke-static {p0, v4, v8}, Lcom/netease/mobileanalysis/MobileAgent;->cacheJSONArrayBody(Landroid/content/Context;Lorg/json/JSONArray;Ljava/lang/String;)V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 905
    .end local v1           #event:Lorg/json/JSONArray;
    .end local v7           #tempJB:Lorg/json/JSONObject;
    :catch_0
    move-exception v0

    .line 906
    .local v0, e:Lorg/json/JSONException;
    const-string v8, "MobileAgent"

    const-string v9, "JSONException"

    invoke-static {v8, v9, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_0

    .line 912
    .end local v0           #e:Lorg/json/JSONException;
    .end local v3           #jb:Lorg/json/JSONObject;
    :cond_3
    const/4 v2, 0x0

    .local v2, i:I
    :goto_1
    invoke-virtual {v4}, Lorg/json/JSONArray;->length()I

    move-result v8

    if-lt v2, v8, :cond_4

    .line 948
    sget-object v8, Lcom/netease/mobileanalysis/MobileAgent;->bodyName:Ljava/lang/String;

    invoke-static {p0, v8}, Lcom/netease/mobileanalysis/MobileAgent;->deleteCacheFile(Landroid/content/Context;Ljava/lang/String;)V

    .line 949
    sget-object v8, Lcom/netease/mobileanalysis/MobileAgent;->bodyName:Ljava/lang/String;

    invoke-static {p0, v4, v8}, Lcom/netease/mobileanalysis/MobileAgent;->cacheJSONArrayBody(Landroid/content/Context;Lorg/json/JSONArray;Ljava/lang/String;)V

    goto :goto_0

    .line 914
    :cond_4
    const/4 v3, 0x0

    .line 916
    .restart local v3       #jb:Lorg/json/JSONObject;
    :try_start_1
    invoke-virtual {v4, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v3

    .line 917
    const-string v8, "s"

    invoke-virtual {v3, v8}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_5

    const-string v8, "s"

    invoke-virtual {v3, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v8, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_5

    .line 919
    const-string v8, "e"

    invoke-virtual {v3, v8}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_6

    .line 921
    const-string v8, "e"

    invoke-virtual {v3, v8}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v1

    .line 922
    .restart local v1       #event:Lorg/json/JSONArray;
    new-instance v7, Lorg/json/JSONObject;

    invoke-direct {v7}, Lorg/json/JSONObject;-><init>()V

    .line 923
    .restart local v7       #tempJB:Lorg/json/JSONObject;
    const-string v8, "n"

    invoke-virtual {v7, v8, p1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 924
    const-string v8, "g"

    invoke-virtual {v7, v8, p2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 925
    const-string v8, "t"

    invoke-virtual {v7, v8, p3}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    .line 926
    invoke-virtual {v1, v7}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;

    .line 927
    const-string v8, "e"

    invoke-virtual {v3, v8, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 928
    invoke-virtual {v4, v2, v3}, Lorg/json/JSONArray;->put(ILjava/lang/Object;)Lorg/json/JSONArray;

    .line 912
    .end local v1           #event:Lorg/json/JSONArray;
    .end local v7           #tempJB:Lorg/json/JSONObject;
    :cond_5
    :goto_2
    add-int/lit8 v2, v2, 0x1

    goto :goto_1

    .line 932
    :cond_6
    new-instance v1, Lorg/json/JSONArray;

    invoke-direct {v1}, Lorg/json/JSONArray;-><init>()V

    .line 933
    .restart local v1       #event:Lorg/json/JSONArray;
    new-instance v7, Lorg/json/JSONObject;

    invoke-direct {v7}, Lorg/json/JSONObject;-><init>()V

    .line 934
    .restart local v7       #tempJB:Lorg/json/JSONObject;
    const-string v8, "n"

    invoke-virtual {v7, v8, p1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 935
    const-string v8, "g"

    invoke-virtual {v7, v8, p2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 936
    const-string v8, "t"

    invoke-virtual {v7, v8, p3}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    .line 937
    invoke-virtual {v1, v7}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;

    .line 938
    const-string v8, "e"

    invoke-virtual {v3, v8, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 939
    invoke-virtual {v4, v2, v3}, Lorg/json/JSONArray;->put(ILjava/lang/Object;)Lorg/json/JSONArray;
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_1

    goto :goto_2

    .line 942
    .end local v1           #event:Lorg/json/JSONArray;
    .end local v7           #tempJB:Lorg/json/JSONObject;
    :catch_1
    move-exception v0

    .line 943
    .restart local v0       #e:Lorg/json/JSONException;
    const-string v8, "MobileAgent"

    const-string v9, "JSONException"

    invoke-static {v8, v9, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto/16 :goto_0
.end method

.method private static setSessionEnd(Landroid/content/Context;)Z
    .locals 6
    .parameter "context"

    .prologue
    .line 1017
    invoke-static {p0}, Lcom/netease/mobileanalysis/MobileAgent;->getSessionHeader(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v3

    .line 1018
    .local v3, header_preferences:Landroid/content/SharedPreferences;
    if-nez v3, :cond_0

    .line 1020
    const-string v4, "MobileAgent"

    const-string v5, "header_preferences == null.."

    invoke-static {v4, v5}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 1021
    const/4 v4, 0x0

    .line 1027
    :goto_0
    return v4

    .line 1023
    :cond_0
    invoke-interface {v3}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    .line 1024
    .local v0, editor:Landroid/content/SharedPreferences$Editor;
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    .line 1025
    .local v1, end_millis:J
    const-string v4, "session_end"

    invoke-interface {v0, v4, v1, v2}, Landroid/content/SharedPreferences$Editor;->putLong(Ljava/lang/String;J)Landroid/content/SharedPreferences$Editor;

    .line 1026
    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 1027
    const/4 v4, 0x1

    goto :goto_0
.end method

.method private startSession(Landroid/content/Context;Landroid/content/SharedPreferences;)Ljava/lang/String;
    .locals 24
    .parameter "context"
    .parameter "state_preferences"

    .prologue
    .line 578
    sget-object v21, Lcom/netease/mobileanalysis/MobileAgent;->bodyName:Ljava/lang/String;

    move-object/from16 v0, p1

    move-object/from16 v1, v21

    invoke-static {v0, v1}, Lcom/netease/mobileanalysis/MobileAgent;->getCachedMessageBody(Landroid/content/Context;Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v10

    .line 579
    .local v10, message:Lorg/json/JSONArray;
    if-nez v10, :cond_0

    .line 581
    new-instance v10, Lorg/json/JSONArray;

    .end local v10           #message:Lorg/json/JSONArray;
    invoke-direct {v10}, Lorg/json/JSONArray;-><init>()V

    .line 583
    .restart local v10       #message:Lorg/json/JSONArray;
    :cond_0
    new-instance v8, Lorg/json/JSONObject;

    invoke-direct {v8}, Lorg/json/JSONObject;-><init>()V

    .line 584
    .local v8, jb:Lorg/json/JSONObject;
    const-string v21, "session_id"

    const-string v22, ""

    move-object/from16 v0, p2

    move-object/from16 v1, v21

    move-object/from16 v2, v22

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v16

    .line 586
    .local v16, session_id:Ljava/lang/String;
    :try_start_0
    const-string v21, "s"

    move-object/from16 v0, v21

    move-object/from16 v1, v16

    invoke-virtual {v8, v0, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 587
    const-string v21, "session_start"

    const-wide/16 v22, 0x0

    move-object/from16 v0, p2

    move-object/from16 v1, v21

    move-wide/from16 v2, v22

    invoke-interface {v0, v1, v2, v3}, Landroid/content/SharedPreferences;->getLong(Ljava/lang/String;J)J

    move-result-wide v17

    .line 588
    .local v17, start_millis:J
    const-string v21, "u"

    const-string v22, ""

    move-object/from16 v0, p2

    move-object/from16 v1, v21

    move-object/from16 v2, v22

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v19

    .line 589
    .local v19, u:Ljava/lang/String;
    const-string v21, "m"

    const-string v22, ""

    move-object/from16 v0, p2

    move-object/from16 v1, v21

    move-object/from16 v2, v22

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    .line 590
    .local v9, m:Ljava/lang/String;
    const-string v21, "o"

    const-string v22, ""

    move-object/from16 v0, p2

    move-object/from16 v1, v21

    move-object/from16 v2, v22

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    .line 591
    .local v13, o:Ljava/lang/String;
    const-string v21, "id"

    const-string v22, ""

    move-object/from16 v0, p2

    move-object/from16 v1, v21

    move-object/from16 v2, v22

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    .line 592
    .local v6, id:Ljava/lang/String;
    const-string v21, "v"

    const-string v22, ""

    move-object/from16 v0, p2

    move-object/from16 v1, v21

    move-object/from16 v2, v22

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v20

    .line 593
    .local v20, v:Ljava/lang/String;
    const-string v21, "r"

    const-string v22, ""

    move-object/from16 v0, p2

    move-object/from16 v1, v21

    move-object/from16 v2, v22

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v15

    .line 594
    .local v15, r:Ljava/lang/String;
    const-string v21, "mid"

    const-string v22, ""

    move-object/from16 v0, p2

    move-object/from16 v1, v21

    move-object/from16 v2, v22

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    .line 595
    .local v11, mid:Ljava/lang/String;
    const-string v21, "op"

    const-string v22, ""

    move-object/from16 v0, p2

    move-object/from16 v1, v21

    move-object/from16 v2, v22

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v14

    .line 596
    .local v14, op:Ljava/lang/String;
    const-string v21, "nt"

    const-string v22, ""

    move-object/from16 v0, p2

    move-object/from16 v1, v21

    move-object/from16 v2, v22

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    .line 597
    .local v12, nt:Ljava/lang/String;
    new-instance v7, Lorg/json/JSONObject;

    invoke-direct {v7}, Lorg/json/JSONObject;-><init>()V

    .line 598
    .local v7, info:Lorg/json/JSONObject;
    const-string v21, "u"

    move-object/from16 v0, v21

    move-object/from16 v1, v19

    invoke-virtual {v7, v0, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 599
    const-string v21, "m"

    move-object/from16 v0, v21

    invoke-virtual {v7, v0, v9}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 600
    const-string v21, "o"

    move-object/from16 v0, v21

    invoke-virtual {v7, v0, v13}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 601
    const-string v21, "id"

    move-object/from16 v0, v21

    invoke-virtual {v7, v0, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 602
    const-string v21, "v"

    move-object/from16 v0, v21

    move-object/from16 v1, v20

    invoke-virtual {v7, v0, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 603
    const-string v21, "r"

    move-object/from16 v0, v21

    invoke-virtual {v7, v0, v15}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 604
    const-string v21, "mid"

    move-object/from16 v0, v21

    invoke-virtual {v7, v0, v11}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 605
    const-string v21, "op"

    move-object/from16 v0, v21

    invoke-virtual {v7, v0, v14}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 606
    const-string v21, "nt"

    move-object/from16 v0, v21

    invoke-virtual {v7, v0, v12}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 607
    const-string v21, "i"

    move-object/from16 v0, v21

    invoke-virtual {v8, v0, v7}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 608
    new-instance v5, Lorg/json/JSONArray;

    invoke-direct {v5}, Lorg/json/JSONArray;-><init>()V

    .line 609
    .local v5, event:Lorg/json/JSONArray;
    new-instance v4, Lorg/json/JSONObject;

    invoke-direct {v4}, Lorg/json/JSONObject;-><init>()V

    .line 610
    .local v4, e:Lorg/json/JSONObject;
    const-string v21, "n"

    const-string v22, "^"

    move-object/from16 v0, v21

    move-object/from16 v1, v22

    invoke-virtual {v4, v0, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 611
    const-string v21, "t"

    move-object/from16 v0, v21

    move-wide/from16 v1, v17

    invoke-virtual {v4, v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;

    .line 612
    invoke-virtual {v5, v4}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;

    .line 613
    const-string v21, "e"

    move-object/from16 v0, v21

    invoke-virtual {v8, v0, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 614
    invoke-virtual {v10, v8}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    .line 619
    .end local v4           #e:Lorg/json/JSONObject;
    .end local v5           #event:Lorg/json/JSONArray;
    .end local v6           #id:Ljava/lang/String;
    .end local v7           #info:Lorg/json/JSONObject;
    .end local v9           #m:Ljava/lang/String;
    .end local v11           #mid:Ljava/lang/String;
    .end local v12           #nt:Ljava/lang/String;
    .end local v13           #o:Ljava/lang/String;
    .end local v14           #op:Ljava/lang/String;
    .end local v15           #r:Ljava/lang/String;
    .end local v17           #start_millis:J
    .end local v19           #u:Ljava/lang/String;
    .end local v20           #v:Ljava/lang/String;
    :goto_0
    sget-object v21, Lcom/netease/mobileanalysis/MobileAgent;->bodyName:Ljava/lang/String;

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    move-object/from16 v2, v21

    invoke-direct {v0, v1, v10, v2}, Lcom/netease/mobileanalysis/MobileAgent;->emitLastEndSessionReport(Landroid/content/Context;Lorg/json/JSONArray;Ljava/lang/String;)V

    .line 620
    return-object v16

    .line 615
    :catch_0
    move-exception v4

    .line 616
    .local v4, e:Lorg/json/JSONException;
    const-string v21, "MobileAgent"

    const-string v22, "JSONException"

    move-object/from16 v0, v21

    move-object/from16 v1, v22

    invoke-static {v0, v1, v4}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_0
.end method

.method private tryToSendMessage(Landroid/content/Context;Lorg/json/JSONArray;Ljava/lang/String;)V
    .locals 2
    .parameter "context"
    .parameter "message"
    .parameter "fileName"

    .prologue
    .line 795
    if-eqz p1, :cond_0

    if-nez p2, :cond_1

    .line 797
    :cond_0
    const-string v0, "MobileAgent"

    const-string v1, "tryToSendMessage:context==null||message==null"

    invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 799
    :cond_1
    invoke-static {p1}, Lcom/netease/mobileanalysis/MobileAgent;->isNetworkAvailable(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-static {p2}, Lcom/netease/mobileanalysis/MobileAgent;->sendMessage(Lorg/json/JSONArray;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 801
    invoke-static {p1, p3}, Lcom/netease/mobileanalysis/MobileAgent;->deleteCacheFile(Landroid/content/Context;Ljava/lang/String;)V

    .line 809
    :goto_0
    return-void

    .line 805
    :cond_2
    invoke-static {p1, p3}, Lcom/netease/mobileanalysis/MobileAgent;->deleteCacheFile(Landroid/content/Context;Ljava/lang/String;)V

    .line 806
    invoke-static {p1, p2, p3}, Lcom/netease/mobileanalysis/MobileAgent;->cacheJSONArrayBody(Landroid/content/Context;Lorg/json/JSONArray;Ljava/lang/String;)V

    goto :goto_0
.end method


# virtual methods
.method public declared-synchronized onEndSessionInternal(Landroid/content/Context;)V
    .locals 3
    .parameter "context"

    .prologue
    .line 529
    monitor-enter p0

    :try_start_0
    invoke-static {p1}, Lcom/netease/mobileanalysis/MobileAgent;->setSessionEnd(Landroid/content/Context;)Z

    move-result v1

    if-nez v1, :cond_1

    .line 531
    const-string v1, "MobileAgent"

    const-string v2, "setSessionEnd is false."

    invoke-static {v1, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 539
    :cond_0
    :goto_0
    monitor-exit p0

    return-void

    .line 534
    :cond_1
    :try_start_1
    invoke-static {p1}, Lcom/netease/mobileanalysis/MobileAgent;->getSessionHeader(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    .line 535
    .local v0, state_preferences:Landroid/content/SharedPreferences;
    if-eqz v0, :cond_0

    .line 538
    invoke-direct {p0, p1, v0}, Lcom/netease/mobileanalysis/MobileAgent;->endSession(Landroid/content/Context;Landroid/content/SharedPreferences;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    .line 529
    .end local v0           #state_preferences:Landroid/content/SharedPreferences;
    :catchall_0
    move-exception v1

    monitor-exit p0

    throw v1
.end method
